Skip to content

Commit 4ed6f80

Browse files
committed
Fixed bottom text-anchor rendering
1 parent bc07d19 commit 4ed6f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textpointitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ QRectF TextPointItem::moveTextRect(const QRectF &rect) const
6868
+ font().pixelSize()/4.0, textRect.height() / 2));
6969
break;
7070
case Text::Bottom:
71-
textRect.moveTopLeft(_pos - QPointF(textRect.width() / 2,
71+
textRect.moveBottomLeft(_pos - QPointF(textRect.width() / 2,
7272
iconRect.height() / 2));
7373
break;
7474
case Text::Top:

0 commit comments

Comments
 (0)