Skip to content
Permalink
Browse files
Backport for 1.0: make sure all the rubber band frames are deleted in…
… composer. Fixes bug #1573

git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10543 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 12, 2009
1 parent 715887a commit dac06fee63c3322063179f4ce5c40242ca31ddcb
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/composer/qgscomposeritem.cpp
@@ -252,6 +252,13 @@ void QgsComposerItem::mousePressEvent( QGraphicsSceneMouseEvent * event )
mLastMouseEventPos = event->lastPos();
mCurrentMouseMoveAction = mouseMoveActionForPosition( event->pos() );

//remove the old rubber band item if it is still there
if ( mBoundingResizeRectangle )
{
scene()->removeItem( mBoundingResizeRectangle );
delete mBoundingResizeRectangle;
mBoundingResizeRectangle = 0;
}
//create and show bounding rectangle
mBoundingResizeRectangle = new QGraphicsRectItem( 0 );
scene()->addItem( mBoundingResizeRectangle );

0 comments on commit dac06fe

Please sign in to comment.