]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
Issue 2758. ly_module_lookup caused deprecation warnings with Guile V2.06.
[lilypond.git] / lily / grob.cc
index 9edf8a2f8a88ff4da6a7c1f260ee947ce7e44453..031af32636878b3a163bb0ea483bca2e0d0fcdc5 100644 (file)
@@ -472,9 +472,11 @@ Grob::extent (Grob *refp, Axis a) const
     }
 
   // We never want nan, so we avoid shifting infinite values.
-  for (LEFT_and_RIGHT (d))
-    if (!isinf (real_ext[d]))
-      real_ext[d] += offset;
+    if(!isinf (offset))
+      real_ext.translate(offset);
+    else
+      this->warning(_f ("ignored infinite %s-offset",
+                        a == X_AXIS ? "X" : "Y"));
 
   return real_ext;
 }
@@ -804,8 +806,6 @@ ADD_INTERFACE (Grob,
                "color "
                "cross-staff "
                "id "
-               "extra-X-extent "
-               "extra-Y-extent "
                "extra-offset "
                "footnote-music "
                "forced-spacing "