summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Neeman <joeneeman@gmail.com>2006-07-25 01:16:05 +0000
committerJoe Neeman <joeneeman@gmail.com>2006-07-25 01:16:05 +0000
commitfa938d4b51ccb3c18e489b395838f2587b531ec2 (patch)
treebbc246bd41ce54f7b7d17bfe056bc2c996fb2eca
parent198f4d748307a3d6d8be3bb29e4197606f24b6b8 (diff)
* lily/grob.cc:
* lily/gourlay-breaking.cc: Oops, these should have been included in my last commit
-rw-r--r--ChangeLog6
-rw-r--r--lily/gourlay-breaking.cc2
-rw-r--r--lily/grob.cc6
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8580df7eab..1bf8a51173 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-25 Joe Neeman <joeneeman@gmail.com>
+
+ * lily/grob.cc:
+ * lily/gourlay-breaking.cc: Oops, these should have been included in my last
+ commit
+
2006-07-24 Han-Wen Nienhuys <hanwen@lilypond.org>
* scripts/*.py (program_name): cleanup relocation snippets.
diff --git a/lily/gourlay-breaking.cc b/lily/gourlay-breaking.cc
index 8e4b357232..f5e29ad18d 100644
--- a/lily/gourlay-breaking.cc
+++ b/lily/gourlay-breaking.cc
@@ -116,7 +116,7 @@ Gourlay_breaking::solve ()
line_dims[LEFT], ragged);
if (ragged && last_line)
- cp.force_ = 0.0;
+ cp.force_ = min (cp.force_, 0.0);
if (fabs (cp.force_) > worst_force)
worst_force = fabs (cp.force_);
diff --git a/lily/grob.cc b/lily/grob.cc
index d13f127044..8628e8a590 100644
--- a/lily/grob.cc
+++ b/lily/grob.cc
@@ -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);
}
/****************************************************************