From 2582617c399acb1d19d4835f63006bcdb39bcbdc Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 8 Jan 2007 11:02:27 +0100 Subject: [PATCH] Paper_column::print: Only display constraints which are used --- lily/paper-column.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 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 pts; pts.push_back (Offset (0, y)); -- 2.39.5