Skip to content

Commit 54e9d45

Browse files
author
jef
committed
fix Qt warnings when overview is hidden
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11196 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e4d44bd commit 54e9d45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/qgsmapoverviewcanvas.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ void QgsMapOverviewCanvas::paintEvent( QPaintEvent * pe )
242242

243243
void QgsMapOverviewCanvas::refresh()
244244
{
245+
if ( mPixmap.isNull() )
246+
return;
247+
245248
mPixmap.fill( mBgColor ); //palette().color(backgroundRole());
246249

247250
QPainter painter;

0 commit comments

Comments
 (0)