summaryrefslogtreecommitdiff
path: root/lily/script-engraver.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lily/script-engraver.cc')
-rw-r--r--lily/script-engraver.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lily/script-engraver.cc b/lily/script-engraver.cc
index 2012f053ba..37a838b0ae 100644
--- a/lily/script-engraver.cc
+++ b/lily/script-engraver.cc
@@ -61,9 +61,8 @@ Script_engraver::do_pre_move_processing()
if (!script_p->specs_p_->inside_b())
script_p->add_support (s_l);
- if (dynamic_cast<Text_def *> (script_p->specs_p_)) // UGH
+ if (Text_def*td_l = dynamic_cast<Text_def *> (script_p->specs_p_)) // UGH
{
- Text_def * td_l = (Text_def*)script_p->specs_p_;
if (!td_l->style_str_.length_i ())
{
Scalar style = get_property ("textstyle", 0);