Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 dac06fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/composer/qgscomposeritem.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit dac06fe

Please sign in to comment.