1
0
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:
Martin Tůma 2019-06-08 12:01:35 +02:00
parent 06e1685f85
commit 3de0ed055a

View File

@ -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()