]> git.donarmstrong.com Git - lilypond.git/commitdiff
don't align to x-extent of a Paper_column.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Jan 2007 01:04:56 +0000 (02:04 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Jan 2007 01:04:56 +0000 (02:04 +0100)
lily/self-aligment-interface.cc

index ff089b6bbdc2e05c9d683d1ddcdd0512b7ac6e9e..b990ff01c0271b4f4688837daf95cd39f12cd4d4 100644 (file)
@@ -7,7 +7,9 @@
 */
 
 #include "self-alignment-interface.hh"
+
 #include "warn.hh"
+#include "paper-column.hh"
 #include "grob.hh"
 
 MAKE_SCHEME_CALLBACK (Self_alignment_interface, y_aligned_on_self, 1);
@@ -92,6 +94,9 @@ SCM
 Self_alignment_interface::aligned_on_parent (Grob *me, Axis a)
 {
   Grob *him = me->get_parent (a);
+  if (Paper_column::has_interface (him))
+    return scm_from_double (0.0);
+    
   Interval he = him->extent (him, a);
 
   SCM sym = (a == X_AXIS) ? ly_symbol2scm ("self-alignment-X")