Skip to content

Commit

Permalink
Fix incorrect selection rect drawn for composer items on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 14, 2016
1 parent 11043c4 commit b7321ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/composer/qgscomposermousehandles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ void QgsComposerMouseHandles::drawSelectedItemBounds( QPainter* painter )
//not resizing or moving, so just map from scene bounds
itemBounds = mapRectFromItem(( *itemIter ), ( *itemIter )->rectWithFrame() );
}
painter->drawPolygon( itemBounds );

// drawPolygon causes issues on windows - corners of path may be missing resulting in triangles being drawn
// instead of rectangles! (Same cause as #13343)
QPainterPath path;
path.addPolygon( itemBounds );
painter->drawPath( path );
}
painter->restore();
}
Expand Down

0 comments on commit b7321ec

Please sign in to comment.