From 05b3ddf4bb419c41da16b4be853d823ee0d3a0ec Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Mon, 23 Jul 2012 07:45:42 +0200 Subject: [PATCH] Adds warning for line spanner with right coordinate less than left coordinate --- lily/line-spanner.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lily/line-spanner.cc b/lily/line-spanner.cc index 2d43a71fa4..f42628820e 100644 --- a/lily/line-spanner.cc +++ b/lily/line-spanner.cc @@ -21,6 +21,7 @@ #include "axis-group-interface.hh" #include "font-interface.hh" #include "grob-interface.hh" +#include "international.hh" #include "item.hh" #include "lily-proto.hh" #include "line-interface.hh" @@ -368,6 +369,8 @@ Line_spanner::print (SCM smob) arrows[LEFT], arrows[RIGHT])); } + else + me->warning (_ ("Line spanner's left point is to the right of its right point.")); line.translate (Offset (-me->relative_coordinate (commonx, X_AXIS), simple_y ? 0.0 : -me->relative_coordinate (my_common_y, Y_AXIS))); -- 2.39.5