Skip to content

Commit

Permalink
Fix model component size corruption when resizing to 'negative' sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 17, 2020
1 parent 06e663e commit 54ff937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/processing/models/qgsmodelcomponentgraphicitem.cpp
Expand Up @@ -148,6 +148,7 @@ void QgsModelComponentGraphicItem::setItemRect( QRectF )

void QgsModelComponentGraphicItem::previewItemRectChange( QRectF rect )
{
rect = rect.normalized();
setPos( rect.center() );
prepareGeometryChange();
mTempSize = rect.size();
Expand Down

0 comments on commit 54ff937

Please sign in to comment.