]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dimension-cache.cc
release: 1.1.30
[lilypond.git] / lily / dimension-cache.cc
index 4d96032f6949f97fdb4ead964e3f39462ac48dcb..6fb7842dcf6325b4dbc88137f96b5d8dd78ed8e1 100644 (file)
@@ -78,10 +78,15 @@ Dimension_cache::absolute_coordinate () const
   return r;
 }
 
+/*
+  what *should* these functions *do* anyway.
+ */
 Real
 Dimension_cache::relative_coordinate (Dimension_cache *d) const
 {
   Real r =0.0;
+  if (d == this)               // UGH
+    return 0.0;
 
   for (Dimension_cache* c = parent_l_;
        c != d;