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 17, 2016
1 parent 4f10a9d commit 4953558
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/composer/qgscomposermousehandles.cpp
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 4953558

Please sign in to comment.