Skip to content
Permalink
Browse files

Fix incorrect selection rect drawn for composer items on windows

  • Loading branch information
nyalldawson committed Oct 13, 2016
1 parent 4c26a81 commit f124107f820ab563bf1e68c22c72c7e91886bfcf
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/composer/qgscomposermousehandles.cpp
@@ -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();
}

0 comments on commit f124107

Please sign in to comment.
You can’t perform that action at this time.