- display_count = gh_int2scm (s);
-#if 0
- /*
- Setting surplus rests to transparent.
- Only really necessary for maximum-rest-count == 0,
- because rests wil be set at exact the same position
- and thus overlap.
- */
- for (i--;i > display_count; i--)
- col2rhythmic_head (rest_l_arr[i-1])
- ->set_elt_property ("transparent", SCM_BOOL_T);
-#endif
+ display_count = gh_scm2int (s);
+ for (; i > display_count; i--)
+ {
+ Grob* r = unsmob_grob (rests[i-1]->get_grob_property ("rest"));
+ if (r)
+ r->suicide ();
+ rests[i-1]->suicide ();
+ }