We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fe1367b commit e5a1b3dCopy full SHA for e5a1b3d
src/gui/qgscomposerview.cpp
@@ -310,8 +310,12 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
310
{
311
for ( ; itemIt != composerItemList.end(); ++itemIt )
312
313
- composition()->removeItem( *itemIt );
314
- emit itemRemoved( *itemIt );
+ QgsComposerMap* map = dynamic_cast<QgsComposerMap*>( *itemIt );
+ if ( !map || !map->isDrawing() ) //don't delete a composer map while it draws
315
+ {
316
+ composition()->removeItem( *itemIt );
317
+ emit itemRemoved( *itemIt );
318
+ }
319
}
320
321
0 commit comments