]> git.donarmstrong.com Git - lilypond.git/commitdiff
Finish fixing 571.
authorJoe Neeman <joeneeman@gmail.com>
Sun, 10 Feb 2008 17:02:47 +0000 (18:02 +0100)
committerJoe Neeman <joeneeman@gmail.com>
Sun, 10 Feb 2008 17:02:47 +0000 (18:02 +0100)
Enlarge the ideal space for grace notes.

lily/spacing-spanner.cc

index 53d6ef278b1b4b11a468e744edbbb62fea0fd957..512bfe4166a71565a5464b42d1a42630ebf05d5b 100644 (file)
@@ -337,7 +337,16 @@ Spacing_spanner::musical_column_spacing (Grob *me,
            This is probably a waste of time in the case of polyphonic
            music.  */
          if (Note_spacing::has_interface (wish))
-           springs.push_back (Note_spacing::get_spacing (wish, right_col, base_note_space, options->increment_));
+           {
+             Real inc = options->increment_;
+             if (Grob *gsp = unsmob_grob (left_col->get_object ("grace-spacing")))
+               {
+                 Spacing_options grace_opts;
+                 grace_opts.init_from_grob (gsp);
+                 inc = grace_opts.increment_;
+               }
+             springs.push_back (Note_spacing::get_spacing (wish, right_col, base_note_space, inc));
+           }
        }
 
       if (springs.empty ())