From 5912506292c08b651b217da5b671a78d0f19fa75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 2 Aug 2016 23:56:50 +0200 Subject: [PATCH] Fixed PDF export/print --- src/trackitem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/trackitem.cpp b/src/trackitem.cpp index fa7da9ae..d0df08db 100644 --- a/src/trackitem.cpp +++ b/src/trackitem.cpp @@ -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)