Skip to content

Commit

Permalink
Fix for a crash in composer (fixes #2374)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12797 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 19, 2010
1 parent 40793c7 commit 963d726
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/qgscomposerview.cpp
Expand Up @@ -241,8 +241,12 @@ void QgsComposerView::mouseReleaseEvent( QMouseEvent* e )
{
if ( !mRubberBandItem || mRubberBandItem->rect().width() < 0.1 || mRubberBandItem->rect().width() < 0.1 )
{
scene()->removeItem( mRubberBandItem );
delete mRubberBandItem;
if ( mRubberBandItem )
{
scene()->removeItem( mRubberBandItem );
delete mRubberBandItem;
mRubberBandItem = 0;
}
return;
}

Expand Down

0 comments on commit 963d726

Please sign in to comment.