]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-item.cc
patch::: 1.3.149.jcn3
[lilypond.git] / lily / text-item.cc
index 3e17134db4e00bb0f8cfe56f9731e725758d9140..5441963c0ef54485ee735b13a5d67f8319db0bc6 100644 (file)
@@ -217,9 +217,14 @@ Text_item::markup_text2molecule (Grob *me, SCM markup_text,
       if (!m.empty_b ())
        {
          m.translate (o);
-         if (axis == Y_AXIS && baseline_skip)
-           next_kern += baseline_skip - m.extent (Y_AXIS)[UP];
-         mol.add_at_edge (axis, axis == X_AXIS ? RIGHT : DOWN, m, next_kern);
+         if (mol.empty_b ())
+           mol = m;
+         else
+           {
+             if (axis == Y_AXIS && baseline_skip)
+               next_kern += baseline_skip - m.extent (Y_AXIS)[UP];
+             mol.add_at_edge (axis, axis == X_AXIS ? RIGHT : DOWN, m, next_kern);
+           }
        }
       text = gh_cdr (text);
     }