From: Joe Neeman Date: Sat, 24 Feb 2007 21:34:16 +0000 (+1100) Subject: fix small mistake in Building::conceals X-Git-Tag: release/2.11.21-1~18^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0ddbf6549b38871338aca9dffaf6f4b6c1b07b71;p=lilypond.git fix small mistake in Building::conceals --- diff --git a/lily/skyline.cc b/lily/skyline.cc index 8c47df70b8..9da2606edb 100644 --- a/lily/skyline.cc +++ b/lily/skyline.cc @@ -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_); }