*/
#include "bar-line.hh"
+#include "context.hh"
#include "score-engraver.hh"
#include "warn.hh"
#include "item.hh"
Bar_engraver::stop_translation_timestep ()
{
if (!bar_)
- /* guh. Use properties! */
- get_score_engraver ()->forbid_breaks ();
+ context ()->get_score_context ()->set_property ("forbidBreak", SCM_BOOL_T);
else
typeset_bar ();
}
/* doc */ "Create barlines. This engraver is controlled through the "
"@code{whichBar} property. If it has no bar line to create, it will forbid a linebreak at this point",
/* create */ "BarLine",
- /* accept */ "",
/* read */ "whichBar",
- /* write */ "");
+ /* write */ "forbidBreak");