]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #250. release/2.10.13-1
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Jan 2007 17:12:47 +0000 (18:12 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Jan 2007 17:33:52 +0000 (18:33 +0100)
Use breakableSeparationItem as right bound, if available.

input/regression/hairpin-to-barline-mark.ly [new file with mode: 0644]
lily/dynamic-engraver.cc

diff --git a/input/regression/hairpin-to-barline-mark.ly b/input/regression/hairpin-to-barline-mark.ly
new file mode 100644 (file)
index 0000000..488ae8b
--- /dev/null
@@ -0,0 +1,13 @@
+\version "2.11.12"
+\paper { ragged-right = ##t }
+\header {
+
+  texidoc = "hairpinToBarline is not confused by very long marks."
+
+}
+
+\new Staff \relative c' {
+  c1\< |
+  \mark "Very long mark"
+  c4\> c c c\! |
+}
index 50cde13ea3b2833a26c290a5851e09570c70eb65..e21f681305e8c7955e76e48a5f8d8317372874fc 100644 (file)
@@ -339,10 +339,18 @@ Dynamic_engraver::typeset_all ()
       if (!finished_cresc_->get_bound (RIGHT)
          || use_bar)
        {
-         Grob *column_bound = unsmob_grob (use_bar
-                                           ? get_property ("currentCommandColumn")
-                                           : get_property ("currentMusicalColumn"));
-           
+                 
+         Grob *column_bound = 0;
+         if (use_bar)
+           {
+             column_bound = unsmob_grob (get_property ("breakableSeparationItem"));
+           }
+         
+         if (!column_bound)
+           column_bound = unsmob_grob (use_bar
+                                       ? get_property ("currentCommandColumn")
+                                       : get_property ("currentMusicalColumn"));
+         
          finished_cresc_->set_bound (RIGHT, script_
                                      ? script_
                                      : column_bound);