Skip to content
Permalink
Browse files

Fix for crash when removing a drawing composer map

git-svn-id: http://svn.osgeo.org/qgis/trunk@11395 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Aug 16, 2009
1 parent fe1367b commit e5a1b3db07c3e6650c2e889feb9c9e5ec912bb71
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/gui/qgscomposerview.cpp
@@ -310,8 +310,12 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
{
for ( ; itemIt != composerItemList.end(); ++itemIt )
{
composition()->removeItem( *itemIt );
emit itemRemoved( *itemIt );
QgsComposerMap* map = dynamic_cast<QgsComposerMap*>( *itemIt );
if ( !map || !map->isDrawing() ) //don't delete a composer map while it draws
{
composition()->removeItem( *itemIt );
emit itemRemoved( *itemIt );
}
}
}

0 comments on commit e5a1b3d

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