diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2007-01-08 11:02:27 +0100 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2007-01-08 11:02:27 +0100 |
commit | 2582617c399acb1d19d4835f63006bcdb39bcbdc (patch) | |
tree | 851b9e47bc9751ac3c03a5db4f3b0ffd85358a32 | |
parent | 061aea1aaa27b8ed734564016ad3dda8ec3d53db (diff) |
Paper_column::print: Only display constraints which are used
-rw-r--r-- | lily/paper-column.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lily/paper-column.cc b/lily/paper-column.cc index e42a3417e2..0efdb01d2d 100644 --- a/lily/paper-column.cc +++ b/lily/paper-column.cc @@ -176,7 +176,10 @@ Paper_column::print (SCM p) scm_is_pair (s); s = scm_cdr (s)) { Spring_smob *sp = unsmob_spring (scm_car (s)); + if (!sp->other_->get_system ()) + continue; + j++; Real y = -j * 1 -3; vector<Offset> pts; pts.push_back (Offset (0, y)); @@ -201,8 +204,13 @@ Paper_column::print (SCM p) scm_is_pair (s); s = scm_cdr (s)) { Real dist = scm_to_double (scm_cdar (s)); + Grob *other = unsmob_grob (scm_caar (s)); + if (!other || other->get_system () != me->get_system ()) + continue; - Real y = -j * 0.1 -3.5; + j++; + + Real y = -j * 1.0 -3.5; vector<Offset> pts; pts.push_back (Offset (0, y)); |