]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/line-spanner.cc
Issue 4377: Run a script for using derived_unsmob where obvious
[lilypond.git] / lily / line-spanner.cc
index 9b0e2bf33b7c587b98d8789432a9170da18003aa..e4f1e4c4548914e0c67dbac3b1e35b4c7303bba7 100644 (file)
@@ -263,7 +263,7 @@ MAKE_SCHEME_CALLBACK (Line_spanner, print, 1);
 SCM
 Line_spanner::print (SCM smob)
 {
-  Spanner *me = dynamic_cast<Spanner *> (Grob::unsmob (smob));
+  Spanner *me = Spanner::unsmob (smob);
 
   // Triggers simple-Y calculations
   bool simple_y = to_boolean (me->get_property ("simple-Y")) && !to_boolean (me->get_property ("cross-staff"));