mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix missing initial render of composer maps
This commit is contained in:
parent
a1160e9e36
commit
7f1a07487a
@ -295,10 +295,8 @@ void QgsComposerMap::paint( QPainter *painter, const QStyleOptionGraphicsItem *,
|
||||
}
|
||||
else if ( mComposition->plotStyle() == QgsComposition::Preview )
|
||||
{
|
||||
//draw cached pixmap. This function does not call cache() any more because
|
||||
//Qt 4.4.0 and 4.4.1 have problems with recursive paintings
|
||||
//QgsComposerMap::cache() and QgsComposerMap::update() need to be called by
|
||||
//client functions
|
||||
if ( mCacheImage.isNull() )
|
||||
cache();
|
||||
|
||||
//Background color is already included in cached image, so no need to draw
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user