1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed PDF export/print

This commit is contained in:
Martin Tůma 2016-08-02 23:56:50 +02:00
parent e3c23d0ffc
commit 5912506292

View File

@ -60,7 +60,6 @@ TrackItem::TrackItem(const Track &track, QGraphicsItem *parent)
QBrush brush(Qt::SolidPattern);
QPen pen(brush, TRACK_WIDTH);
pen.setCosmetic(true);
setPen(pen);
}
@ -68,6 +67,10 @@ void TrackItem::setScale(qreal scale)
{
QGraphicsPathItem::setScale(scale);
updateShape();
QPen p(pen());
p.setWidthF(TRACK_WIDTH * 1.0/scale);
setPen(p);
}
void TrackItem::setColor(const QColor &color)