From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Tue, 4 May 2004 19:50:04 +0000 (+0000)
Subject: (create_text_grobs): core dump fix.
X-Git-Tag: release/2.3.1~28
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=11f2e20b523196e330784bc14909f94da34c7e08;p=lilypond.git

(create_text_grobs): core dump fix.
---

diff --git a/ChangeLog b/ChangeLog
index 5b1e512b07..3c7c63eb8c 100644
--- 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>
diff --git a/lily/piano-pedal-engraver.cc b/lily/piano-pedal-engraver.cc
index a43268aa77..7038355ee5 100644
--- a/lily/piano-pedal-engraver.cc
+++ b/lily/piano-pedal-engraver.cc
@@ -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)
     {