]> git.donarmstrong.com Git - lilypond.git/commitdiff
Warn if break is requested at an unbreakable place
authorJoe Neeman <joeneeman@gmail.com>
Wed, 31 Jan 2007 19:12:10 +0000 (21:12 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Wed, 31 Jan 2007 19:12:10 +0000 (21:12 +0200)
lily/page-breaking.cc
lily/paper-column-engraver.cc

index 83add92ae0ba59492d98539914834d02318e7a19..abb2a3e2148436c3e9fb3a333c7e2800bcd37b0f 100644 (file)
@@ -80,7 +80,6 @@ Page_breaking::break_into_pieces (vsize start_break, vsize end_break, Line_divis
     {
       programming_error ("did not find a valid page breaking configuration");
       ignore_div = true;
-      assert (0);
     }
 
   for (vsize i = 0; i + 1 < chunks.size (); i++)
index 64db810b3f7fc86486750d073cad36c490737ce0..6a765628aa892424c8e9a81f94ad2d5eaeeb57b9 100644 (file)
@@ -188,7 +188,13 @@ Paper_column_engraver::stop_translation_timestep ()
   items_.clear ();
 
   if (to_boolean (get_property ("forbidBreak")))
-    command_column_->set_property ("line-break-permission", SCM_EOL);
+    {
+      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 ()));
+    }
   else if (Paper_column::is_breakable (command_column_))
     {
       breaks_++;