Skip to content

Commit 6c55e68

Browse files
committed
[composer] Fix page border is too wide under qt5
1 parent 71abd4c commit 6c55e68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/composer/qgspaperitem.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ void QgsPaperItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* ite
177177

178178
//page area
179179
painter->setBrush( QColor( 215, 215, 215 ) );
180-
painter->setPen( QPen( QColor( 100, 100, 100 ) ) );
180+
QPen pagePen = QPen( QColor( 100, 100, 100 ), 0 );
181+
pagePen.setCosmetic( true );
182+
painter->setPen( pagePen );
181183
painter->drawRect( QRectF( 0, 0, rect().width(), rect().height() ) );
182184
}
183185

0 commit comments

Comments
 (0)