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 de47c00 commit 41b5973Copy full SHA for 41b5973
src/app/composer/qgscomposer.cpp
@@ -433,10 +433,24 @@ void QgsComposer::on_mActionZoomOut_triggered()
433
434
void QgsComposer::on_mActionRefreshView_triggered()
435
{
436
- if ( mComposition )
+ if ( !mComposition )
437
438
- mComposition->update();
+ return;
439
}
440
+
441
+ //refresh preview of all composer maps
442
+ QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.begin();
443
+ for(; it != mItemWidgetMap.end(); ++it)
444
+ {
445
+ QgsComposerMap* map = dynamic_cast<QgsComposerMap*>(it.key());
446
+ if(map && !map->isDrawing())
447
448
+ map->cache();
449
+ map->update();
450
+ }
451
452
453
+ mComposition->update();
454
455
456
void QgsComposer::on_mActionExportAsPDF_triggered()
0 commit comments