]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-engraver.cc
* lily/text-engraver.cc (process_acknowledged_grobs): use new
[lilypond.git] / lily / text-engraver.cc
index 714ed9004bf6b4572712f47f45396dabbd9d360b..486de81cac7048edd78fdb61a05aba93379fbb92 100644 (file)
@@ -14,6 +14,7 @@
 #include "event.hh"
 #include "stem.hh"
 #include "rhythmic-head.hh"
+#include "text-item.hh"
 
 
 /**
@@ -111,8 +112,14 @@ Text_engraver::process_acknowledged_grobs ()
       Direction dir = to_dir (r->get_mus_property ("direction"));
       if (dir)
        Side_position_interface::set_direction (text, dir);
+
+
+      SCM mark = r->get_mus_property ("text");
+
+      if (new_markup_p (mark))
+       text->set_grob_property ("molecule-callback", new_markup_brewer());
       
-      text->set_grob_property ("text", r->get_mus_property ("text"));
+      text->set_grob_property ("text", mark);
       announce_grob (text, r->self_scm ());
       texts_.push (text);
     }