mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Cut label text fix (workaround)
This commit is contained in:
parent
06e1685f85
commit
3de0ed055a
@ -18,6 +18,7 @@ TextPointItem::TextPointItem(const QPoint &point, const QString *text,
|
||||
QFontMetrics fm(*font);
|
||||
int limit = font->pixelSize() * MAX_TEXT_WIDTH;
|
||||
_textRect = fm.boundingRect(QRect(0, 0, limit, 0), FLAGS, *text);
|
||||
_textRect.adjust(0, 0, 1, 1);
|
||||
}
|
||||
if (img) {
|
||||
iconRect = QRect(QPoint(point.x() - img->width()/2, point.y()
|
||||
|
Loading…
x
Reference in New Issue
Block a user