]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/multi-measure-rest.cc
patch::: 1.1.37.script1
[lilypond.git] / lily / multi-measure-rest.cc
index 00b647e6a164656f762d674187f43b7f7d64cb3f..6750347e9d518775ba679002735b8ecf3d9c675f 100644 (file)
@@ -15,7 +15,7 @@
 #include "lookup.hh"
 #include "rest.hh"
 #include "script.hh"
-#include "text-def.hh"
+
 #include "molecule.hh"
 #include "misc.hh"
 
@@ -63,11 +63,8 @@ Multi_measure_rest::do_brew_molecule_p () const
 
   if (measures_i_ > 1)
     {
-      Text_def text;
-      text.text_str_ = to_str (measures_i_);
-      text.style_str_ = "number";
-      text.align_dir_ = CENTER;
-      Molecule s = text.get_molecule (paper_l (), UP);
+      Molecule s ( lookup_l ()->text ("number", to_str (measures_i_)));
+
       s.translate_axis (3.0 * interline_f, Y_AXIS);
       mol_p->add_molecule (s);
     }