Single_malt_grouping_item ::Single_malt_grouping_item()
{
- break_helper_only_b_ = true;
- transparent_b_ = true;
+ set_elt_property (break_helper_only_scm_sym, SCM_BOOL_T);
+ set_elt_property (transparent_scm_sym, SCM_BOOL_T);
+
+ // this is weird! , but needed!
set_empty (true);
}
warning (_("Single_malt_grouping_item: I've been drinking too much (fixme)"));
continue; /*UGH UGH*/
}
- w.unite (il->extent (X_AXIS) + il->relative_coordinate (&pc->dim_cache_[X_AXIS], X_AXIS));
+
+ Interval iv (il->extent (X_AXIS));
+ if (!iv.empty_b ())
+ {
+ Real off = il->relative_coordinate (&pc->dim_cache_[X_AXIS], X_AXIS);
+ w.unite (iv + off);
+ }
}
return w;
void
-Single_malt_grouping_item::do_substitute_element_pointer (Score_element*o, Score_element*n)
+Single_malt_grouping_item::do_substitute_element_pointer (Score_element*o,
+ Score_element*n)
{
if (dynamic_cast <Item *> (o))
{