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

git-svn-id: http://svn.osgeo.org/qgis/trunk@10544 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 12, 2009
1 parent 24e6248 commit a012920c5753f2e367f700f20b64d1b9444dd8cd
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/composer/qgscomposeritem.cpp
@@ -237,6 +237,13 @@ void QgsComposerItem::mousePressEvent( QGraphicsSceneMouseEvent * event )
mLastMouseEventPos = event->lastScenePos();
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 a012920

Please sign in to comment.