]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix small mistake in Building::conceals
authorJoe Neeman <joeneeman@gmail.com>
Sat, 24 Feb 2007 21:34:16 +0000 (08:34 +1100)
committerJoe Neeman <joeneeman@gmail.com>
Sat, 24 Feb 2007 21:34:16 +0000 (08:34 +1100)
lily/skyline.cc

index 8c47df70b8f1cbc079c947b1a0bc0379e5364aab..9da2606edbed49bc5354ec777f7cb02a0099890e 100644 (file)
@@ -166,7 +166,7 @@ Building::conceals (Building const &other, Real x) const
 
   /* their slopes were not equal, so there is an intersection point */
   Real i = intersection_x (other);
-  return (i < x && slope_ > other.slope_)
+  return (i <= x && slope_ > other.slope_)
     || (i > x && slope_ < other.slope_);
 }