]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix spacing for forced accidentals with a tie.
authorJoe Neeman <joeneeman@gmail.com>
Mon, 20 Aug 2007 22:37:40 +0000 (08:37 +1000)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 20 Aug 2007 22:37:40 +0000 (08:37 +1000)
input/regression/spacing-accidental-tie.ly [new file with mode: 0644]
lily/accidental-placement.cc

diff --git a/input/regression/spacing-accidental-tie.ly b/input/regression/spacing-accidental-tie.ly
new file mode 100644 (file)
index 0000000..35c25b9
--- /dev/null
@@ -0,0 +1,23 @@
+\version "2.11.30"
+
+\header {
+  texidoc = "Horizontal spacing works as expected on tied notes with
+accidentals. No space is reserved for accidentals that end up not being printed,
+but accindentals that are printed don't collide with anything."
+}
+
+\paper { ragged-right = ##t }
+
+\relative c'
+{ \time 1/4
+  cis16 cis cis cis~
+  cis cis cis cis
+  c c c c \break
+
+  cis16 cis cis cis~
+  cis! cis cis cis
+  c c c c \break
+
+  cis cis cis cis~ \break
+  cis
+}
\ No newline at end of file
index bb1419977ef262fb9ef7a4fada49be8362c15e87..2c76062d6742a19151d1aaac5104c482d6e5f154 100644 (file)
@@ -68,7 +68,7 @@ Accidental_placement::split_accidentals (Grob *accs,
       {
        Grob *a = unsmob_grob (scm_car (s));
 
-       if (unsmob_grob (a->get_object ("tie")))
+       if (unsmob_grob (a->get_object ("tie")) && !to_boolean (a->get_property ("forced")))
          break_reminder->push_back (a);
        else
          real_acc->push_back (a);