]> git.donarmstrong.com Git - lilypond.git/commitdiff
silence some spurious warnings
authorJoe Neeman <joeneeman@gmail.com>
Thu, 1 Feb 2007 21:33:36 +0000 (23:33 +0200)
committerJoe Neeman <joeneeman@gmail.com>
Thu, 1 Feb 2007 21:33:36 +0000 (23:33 +0200)
lily/axis-group-interface.cc
lily/line-spanner.cc
lily/paper-column-engraver.cc

index 9f7c25c6c44e27c34d7b1b6bf60425287183967c..8cf2e13e3fe07a8674985dbd43e9914c8412faa3 100644 (file)
@@ -437,9 +437,7 @@ add_grobs_of_one_priority (Skyline_pair *const skylines,
          if (b[X_AXIS][LEFT] - 2*horizon_padding < last_affected_position[dir])
            continue;
 
-         if (b[X_AXIS].is_empty () || b[Y_AXIS].is_empty ())
-           warning (_f ("outside-staff object %s has an empty extent", elements[i]->name ().c_str ()));
-         else
+         if (!b[X_AXIS].is_empty () && !b[Y_AXIS].is_empty ())
            {
              boxes.clear ();
              boxes.push_back (b);
index db36434b04b252e7a33da6d629d94609ef29f9b2..f6315451724d0c6a7224ad6fdfdd10ccb9c2cf22 100644 (file)
@@ -36,7 +36,9 @@ public:
 static Grob *
 line_spanner_common_parent (Grob *me)
 {
-  Grob *common = find_fixed_alignment_parent (me);
+  /* FIXME: what is the right thing to do here, now that PianoStaves don't
+     have fixed spacing? */
+  Grob *common = 0; //find_fixed_alignment_parent (me);
   if (!common)
     {
       common = Staff_symbol_referencer::get_staff_symbol (me);
index 6a765628aa892424c8e9a81f94ad2d5eaeeb57b9..2df287aa371cf07a7d289c485981508d7c90e099 100644 (file)
@@ -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_))
     {