Skip to content

Commit 0826e2e

Browse files
committed
fix mtest
1 parent 83ead22 commit 0826e2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libmscore/text.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ void TextBlock::layout(Text* t)
277277
f.pos.setY(0.0);
278278
qreal w;
279279
QRectF r;
280-
r = fm.boundingRect(f.text).translated(f.pos);
280+
if (f.format.type() == CharFormatType::SYMBOL)
281+
r = fm.tightBoundingRect(f.text).translated(f.pos);
282+
else
283+
r = fm.boundingRect(f.text).translated(f.pos);
281284
w = fm.width(f.text);
282285
_bbox |= r;
283286
x += w;

0 commit comments

Comments
 (0)