We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 24e6248 commit a012920Copy full SHA for a012920
src/core/composer/qgscomposeritem.cpp
@@ -237,6 +237,13 @@ void QgsComposerItem::mousePressEvent( QGraphicsSceneMouseEvent * event )
237
mLastMouseEventPos = event->lastScenePos();
238
mCurrentMouseMoveAction = mouseMoveActionForPosition( event->pos() );
239
240
+ //remove the old rubber band item if it is still there
241
+ if ( mBoundingResizeRectangle )
242
+ {
243
+ scene()->removeItem( mBoundingResizeRectangle );
244
+ delete mBoundingResizeRectangle;
245
+ mBoundingResizeRectangle = 0;
246
+ }
247
//create and show bounding rectangle
248
mBoundingResizeRectangle = new QGraphicsRectItem( 0 );
249
scene()->addItem( mBoundingResizeRectangle );
0 commit comments