]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ligature-engraver.cc
Issue 4997/7: Use Preinit for Global_context, protect output definition
[lilypond.git] / lily / ligature-engraver.cc
index b647e02edddf16fec3772f1ede8e2e45ea27ac94..f3bac03c76955f62a913224224d3966aacc2016c 100644 (file)
@@ -121,7 +121,7 @@ Ligature_engraver::process_music ()
       primitives_.clear ();
       ligature_ = 0;
     }
-  last_bound_ = Grob::unsmob (get_property ("currentMusicalColumn"));
+  last_bound_ = unsmob<Grob> (get_property ("currentMusicalColumn"));
 
   if (ligature_)
     {
@@ -140,7 +140,7 @@ Ligature_engraver::process_music ()
       prev_start_event_ = events_drul_[START];
       ligature_ = create_ligature_spanner ();
 
-      Grob *bound = Grob::unsmob (get_property ("currentMusicalColumn"));
+      Grob *bound = unsmob<Grob> (get_property ("currentMusicalColumn"));
       if (!bound)
         events_drul_[START]->origin ()->warning (_ ("no left bound"));
       else