Skip to content
Permalink
Browse files

Fix for a crash in composer (fixes #2374)

git-svn-id: http://svn.osgeo.org/qgis/trunk@12797 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 19, 2010
1 parent 40793c7 commit 963d72633b26cd985182ff73f0aca58969266716
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/gui/qgscomposerview.cpp
@@ -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;
}

0 comments on commit 963d726

Please sign in to comment.
You can’t perform that action at this time.