]> git.donarmstrong.com Git - lilypond.git/commitdiff
(process_music): set right bound to
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Apr 2005 22:45:41 +0000 (22:45 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 19 Apr 2005 22:45:41 +0000 (22:45 +0000)
script if present. Else, do not set.
(acknowledge_grob): only set right bound of finished spanner to
note column if no other bound is set.

ChangeLog
lily/dynamic-engraver.cc

index 01ac7dceed706c2e5fb43d3b218402a55161f7da..7879a6c25db11725bffcfe57c0973bb140b844c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-04-20  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * lily/dynamic-engraver.cc (process_music): set right bound to
+       script if present. Else, do not set.
+       (acknowledge_grob): only set right bound of finished spanner to
+       note column if no other bound is set.
+
        * python/lilylib.py (make_ps_images): switch back to png16m.
        
 2005-04-19  Jan Nieuwenhuizen  <janneke@gnu.org>
index 7a7c9c9dc5feb3fc49422a39c73ecde6f59a40b3..dd7e8ad4fbf5c4254c860a627bf7d6718c5d6e55 100644 (file)
@@ -157,11 +157,12 @@ Dynamic_engraver::process_music ()
        {
          assert (!finished_cresc_ && cresc_);
 
-         cresc_->set_bound (RIGHT, script_
-                            ? script_
-                            : unsmob_grob (get_property ("currentMusicalColumn")));
-         add_bound_item (line_spanner_, cresc_->get_bound (RIGHT));
-
+         if (script_)
+           {
+             cresc_->set_bound (RIGHT, script_);
+             add_bound_item (line_spanner_, script_);
+           }
+         
          finished_cresc_ = cresc_;
          cresc_ = 0;
          current_cresc_ev_ = 0;
@@ -391,10 +392,9 @@ Dynamic_engraver::acknowledge_grob (Grob_info info)
              cresc_->set_bound (LEFT, info.grob_);
              add_bound_item (line_spanner_, cresc_->get_bound (LEFT));
            }
-         cresc_->set_bound (RIGHT, info.grob_);
        }
 
-      if (finished_cresc_)
+      if (finished_cresc_ && !finished_cresc_->get_bound (RIGHT))
        {
          finished_cresc_->set_bound (RIGHT, info.grob_);
        }