diff options
author | Joe Neeman <joeneeman@gmail.com> | 2007-02-01 23:33:36 +0200 |
---|---|---|
committer | Joe Neeman <joeneeman@gmail.com> | 2007-02-01 23:33:36 +0200 |
commit | da132425e3de8e4fc19194b61376b8aca0bd0eb6 (patch) | |
tree | 5bffe2a8564d188cf23dbd126f31a28ec21696a6 /lily/paper-column-engraver.cc | |
parent | 0c269f6f2987ca62acef20b669dc157ce75931f1 (diff) |
silence some spurious warnings
Diffstat (limited to 'lily/paper-column-engraver.cc')
-rw-r--r-- | lily/paper-column-engraver.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lily/paper-column-engraver.cc b/lily/paper-column-engraver.cc index 6a765628aa..2df287aa37 100644 --- a/lily/paper-column-engraver.cc +++ b/lily/paper-column-engraver.cc @@ -191,9 +191,12 @@ Paper_column_engraver::stop_translation_timestep () { command_column_->set_property ("page-break-permission", SCM_EOL); command_column_->set_property ("line-break-permission", SCM_EOL); - if (break_events_.size ()) - warning (_f ("break event at moment %d/%d was overridden by some other event, are you using bar checks?", - now_mom ().num (), now_mom ().den ())); + for (vsize i = 0; i < break_events_.size (); i++) + { + SCM perm = break_events_[i]->get_property ("permission"); + if (perm == ly_symbol2scm ("force") || perm == ly_symbol2scm ("allow")) + warning (_f ("forced break was overridden by some other event, should you be using bar checks?")); + } } else if (Paper_column::is_breakable (command_column_)) { |