"head-direction "
"note-head "
"thickness "
+ "line-thickness "
);
MAKE_SCHEME_CALLBACK (Semi_tie, calc_control_points, 1)
(void) me->get_property ("direction");
Grob *yparent = me->get_parent (Y_AXIS);
- if (Semi_tie_column::has_interface (yparent))
+ if (has_interface<Semi_tie_column> (yparent))
{
/* trigger positioning. */
yparent->get_property ("positioning-done");
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 *