]> git.donarmstrong.com Git - lilypond.git/commitdiff
(create_text_grobs): core dump fix.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 4 May 2004 19:50:04 +0000 (19:50 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 4 May 2004 19:50:04 +0000 (19:50 +0000)
ChangeLog
lily/piano-pedal-engraver.cc

index 5b1e512b0793fd53f1224ffb0f560f7ca2a2e475..3c7c63eb8ce10f05aa73781b5bbb5a9b5aa5f8f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-05-04  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/piano-pedal-engraver.cc (create_text_grobs): core dump fix.
+
        * cygwin/lily-wins.py: update for the lily-wins.py script.
 
 2004-05-03  Han-Wen Nienhuys   <hanwen@xs4all.nl>
index a43268aa7729fbf74c2fe3b326ac5ee78939e60c..7038355ee52aa2504bacea2e02a53806c95414d8 100644 (file)
@@ -297,9 +297,10 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
       p->item_ = make_item (propname.to_str0 (), (p->event_drul_[START]
                                                  ? p->event_drul_[START]
                                                  : p->event_drul_[STOP])->self_scm ());
+
+      p->item_->set_property ("text", s);
+      Axis_group_interface::add_element (p->line_spanner_, p->item_);
     }
-  p->item_->set_property ("text", s);
-  Axis_group_interface::add_element (p->line_spanner_, p->item_);
   
   if (!mixed)
     {