]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/paper-column.cc
Merge branch 'master' of ssh+git://gpercival@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / paper-column.cc
index e42a3417e22001df09314c455a52695f7a877bfb..28c7af69d398a552eb6d47eb4e0abc88e54d4fc9 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "paper-column.hh"
@@ -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));