]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
* lily/instrument-name-engraver.cc (start_spanner): new
[lilypond.git] / lily / grob.cc
index c1545de824208cff345a3320594f057bdc720191..8628e8a5909f1ba5d090d49e5eda8707a3bb3401 100644 (file)
@@ -419,6 +419,10 @@ Grob::pure_height (Grob *refp, int start, int end)
                                       SCM_EOL));
   Real offset = pure_relative_y_coordinate (refp, start, end);
 
+  SCM min_ext = get_property ("minimum-Y-extent");
+  if (is_number_pair (min_ext))
+    iv.unite (ly_scm2interval (min_ext));
+
   iv.translate (offset);
   return iv;
 }
@@ -434,7 +438,7 @@ Grob::maybe_pure_extent (Grob *refp, Axis a, bool pure, int start, int end)
 Interval_t<int>
 Grob::spanned_rank_iv ()
 {
-  return Interval_t<int> (INT_MIN, INT_MAX);
+  return Interval_t<int> (-1, 0);
 }
 
 /****************************************************************
@@ -514,6 +518,7 @@ Grob::warning (string s) const
   while (Grob *g = unsmob_grob (cause))
     cause = g->get_property ("cause");
 
+  /* ES TODO: cause can't be Music*/
   if (Music *m = unsmob_music (cause))
     m->origin ()->warning (s);
   else if (Stream_event *ev = unsmob_stream_event (cause))
@@ -541,6 +546,7 @@ Grob::programming_error (string s) const
 
   s = _f ("programming error: %s", s);
 
+  /* ES TODO: cause can't be Music*/
   if (Music *m = unsmob_music (cause))
     m->origin ()->message (s);
   else if (Stream_event *ev = unsmob_stream_event (cause))