]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/completion-note-heads-engraver.cc
*** empty log message ***
[lilypond.git] / lily / completion-note-heads-engraver.cc
index 9a72b6d5ed077495addb33a1fa82ea63b4c91676..3e5056619d6345af1b157b75948d4bf866ba70c1 100644 (file)
@@ -12,6 +12,7 @@ using namespace std;
 #include "duration.hh"
 #include "global-context.hh"
 #include "item.hh"
+#include "music.hh"
 #include "output-def.hh"
 #include "pitch.hh"
 #include "rhythmic-head.hh"
@@ -216,7 +217,11 @@ Completion_heads_engraver::process_music ()
          Item *d = make_item ("Dots", SCM_EOL);
          Rhythmic_head::set_dots (note, d);
 
-         d->set_property ("dot-count", scm_from_int (dots));
+         /*
+           measly attempt to save an eeny-weenie bit of memory.
+         */
+         if (dots != scm_to_int (d->get_property ("dot-count")))
+           d->set_property ("dot-count", scm_from_int (dots));
 
          d->set_parent (note, Y_AXIS);
          dots_.push_back (d);
@@ -291,15 +296,7 @@ ADD_TRANSLATOR (Completion_heads_engraver,
                /* doc */ "This engraver replaces "
                "@code{Note_heads_engraver}. It plays some trickery to "
                "break long notes and automatically tie them into the next measure.",
-               /* create */
-               "NoteHead "
-               "Dots "
-               "Tie",
-
+               /* create */ "NoteHead Dots Tie",
                /* accept */ "note-event",
-               /* read */
-               "middleCPosition "
-               "measurePosition "
-               "measureLength",
-
+               /* read */ "middleCPosition measurePosition measureLength",
                /* write */ "");