]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #778
authorPatrick McCarty <pnorcks@gmail.com>
Tue, 16 Jun 2009 01:35:47 +0000 (18:35 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 17 Jul 2009 09:49:55 +0000 (02:49 -0700)
* Do not set 'dot-count in Dots_engraver, since
  Dots already has a callback for this property.

  This also permits user overrides to 'dot-count.

Signed-off-by: Patrick McCarty <pnorcks@gmail.com>
(cherry picked from commit 531fdf2f0fb771fb3e0d4b15aa73b77707c752f0)

input/regression/dot-dot-count-override.ly [new file with mode: 0644]
lily/dots-engraver.cc

diff --git a/input/regression/dot-dot-count-override.ly b/input/regression/dot-dot-count-override.ly
new file mode 100644 (file)
index 0000000..ce8fe64
--- /dev/null
@@ -0,0 +1,15 @@
+\version "2.13.2"
+
+\header {
+  texidoc = "The @code{dot-count} property
+for @code{Dots} can be modified by the user."
+
+}
+
+\relative c'' {
+  c4.. a16
+  \override Dots #'dot-count = #4
+  g4.. e16
+  \override Dots #'dot-count = #0
+  c4. r8 r2
+}
index 9d1af7779b31d157b7bc8cb1636fb7f061f028e4..11b384749a53a12af6cccb78a3f2c19b94804ae4 100644 (file)
@@ -43,7 +43,6 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi)
       Item *d = make_item ("Dots", note->self_scm ());
       Rhythmic_head::set_dots (note, d);
 
-      d->set_property ("dot-count", scm_from_int (dur->dot_count ()));
       d->set_parent (note, Y_AXIS);
     }
 }