Skip to content
Permalink
Browse files

Fix incorrect selection rect drawn for composer items on windows

  • Loading branch information
nyalldawson committed Oct 17, 2016
1 parent 4f10a9d commit 49535581ad31028a96bedded08490f047f56e65e
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 4953558

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