]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/semi-tie.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / semi-tie.cc
index 0669c277f7ecad65b16fed5c60796626b6a9485d..2d0c1133a879f9e769900c014c8ba1c62c7e7bcc 100644 (file)
@@ -49,6 +49,7 @@ ADD_INTERFACE (Semi_tie,
                "head-direction "
                "note-head "
                "thickness "
+               "line-thickness "
               );
 
 MAKE_SCHEME_CALLBACK (Semi_tie, calc_control_points, 1)
@@ -89,13 +90,20 @@ bool
 Semi_tie::less (Grob *g1, Grob *g2)
 {
   Item *i1 = dynamic_cast<Item *> (g1);
+  if (!i1)
+    {
+      g1->programming_error ("grob is not a semi-tie");
+      return false;
+    }
+
   Item *i2 = dynamic_cast<Item *> (g2);
-  if (i1 && i2) {
-    return get_position (i1) < get_position (i2);
-  }
+  if (!i2)
+    {
+      g2->programming_error ("grob is not a semi-tie");
+      return true;
+    }
 
-  programming_error ("grob is not a semi-tie");
-  return false;
+  return get_position (i1) < get_position (i2);
 }
 
 Item *