]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
Issue 2626: add on-page for usage in \on-the-fly
[lilypond.git] / lily / grob.cc
index ed96f1d13a9b1386a4c64912c2d823684b397097..828ae7f07b40687457f8031475f0a42d9992dc67 100644 (file)
@@ -466,7 +466,10 @@ Grob::extent (Grob *refp, Axis a) const
       ((Grob *)this)->dim_cache_[a].extent_ = new Interval (real_ext);
     }
 
-  real_ext.translate (offset);
+  // We never want nan, so we avoid shifting infinite values.
+  for (LEFT_and_RIGHT (d))
+    if (!isinf (real_ext[d]))
+      real_ext[d] += offset;
 
   return real_ext;
 }
@@ -799,6 +802,7 @@ ADD_INTERFACE (Grob,
                "extra-X-extent "
                "extra-Y-extent "
                "extra-offset "
+               "footnote-music "
                "forced-spacing "
                "interfaces "
                "layer "