Skip to content

Commit 750840f

Browse files
committed
Allow text borders to be higher than wide
as long as it is multi-line text
1 parent 3d63d72 commit 750840f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engraving/dom/textbase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,8 +1847,8 @@ void TextBase::layoutFrame(LayoutData* ldata) const
18471847
}
18481848

18491849
if (rectangle()) {
1850-
// make sure width >= height
1851-
if (ldata->frame.height() > ldata->frame.width()) {
1850+
// make sure width >= height, if only one row (basically: make square for single characters)
1851+
if (ldata->frame.height() > ldata->frame.width() && ldata->rows() == 1) {
18521852
double w = ldata->frame.height() - ldata->frame.width();
18531853
ldata->frame.adjust(-w * .5, 0.0, w * .5, 0.0);
18541854
}

0 commit comments

Comments
 (0)