-MAKE_SCHEME_CALLBACK (System_start_delimiter,brew_molecule,1);
-SCM
-System_start_delimiter::brew_molecule (SCM smob)
-{
- Grob * me = unsmob_grob (smob);
-
- SCM s = me->get_grob_property ("glyph");
- if (!gh_string_p (s))
- return SCM_EOL;
- SCM gsym = scm_string_to_symbol (s) ;
- SCM c = me->get_grob_property ("collapse-height");
-
- Real staff_space = Staff_symbol_referencer::staff_space (me);
- Interval ext = ly_scm2interval (Axis_group_interface::group_extent_callback
- (me->self_scm (), gh_int2scm (Y_AXIS)));
- Real l = ext.length () / staff_space;
-
- if (ext.empty_b ()
- || (gh_number_p (c) && l <= gh_scm2double (c)))
+ SCM glyph_sym = me->get_property ("style");
+ Real len = ext.length ();
+ if (ext.is_empty ()
+ || (robust_scm2double (me->get_property ("collapse-height"), 0.0) >= ext.length ())
+ || (glyph_sym == ly_symbol2scm ("bar-line")
+ && non_empty_count <= 1))