We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d888728 commit 55556fcCopy full SHA for 55556fc
src/core/composer/qgscomposition.cpp
@@ -1279,7 +1279,9 @@ QGraphicsLineItem* QgsComposition::addSnapLine()
1279
QGraphicsLineItem* item = new QGraphicsLineItem();
1280
QPen linePen( Qt::SolidLine );
1281
linePen.setColor( Qt::red );
1282
- linePen.setWidthF( 0.5 );
+ // use a pen width of 0, since this activates a cosmetic pen
1283
+ // which doesn't scale with the composer and keeps a constant size
1284
+ linePen.setWidthF( 0 );
1285
item->setPen( linePen );
1286
item->setZValue( 100 );
1287
addItem( item );
0 commit comments