Skip to content

Commit cf83352

Browse files
committedOct 17, 2016
Fix incorrect selection rect drawn for composer items on windows
1 parent d1aff82 commit cf83352

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/core/composer/qgscomposermousehandles.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,12 @@ void QgsComposerMouseHandles::drawSelectedItemBounds( QPainter* painter )
194194
//not resizing or moving, so just map from scene bounds
195195
itemBounds = mapRectFromItem(( *itemIter ), ( *itemIter )->rectWithFrame() );
196196
}
197-
painter->drawPolygon( itemBounds );
197+
198+
// drawPolygon causes issues on windows - corners of path may be missing resulting in triangles being drawn
199+
// instead of rectangles! (Same cause as #13343)
200+
QPainterPath path;
201+
path.addPolygon( itemBounds );
202+
painter->drawPath( path );
198203
}
199204
painter->restore();
200205
}

0 commit comments

Comments
 (0)
Please sign in to comment.