Skip to content

Commit

Permalink
Restore canvas colour for overview window
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Sep 12, 2014
1 parent 380baa2 commit 5b3e014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmapoverviewcanvas.cpp
Expand Up @@ -75,8 +75,6 @@ QgsMapOverviewCanvas::QgsMapOverviewCanvas( QWidget * parent, QgsMapCanvas* mapC
setObjectName( "theOverviewCanvas" );
mPanningWidget = new QgsPanningWidget( this );

setBackgroundColor( palette().window().color() );

mSettings.setFlag( QgsMapSettings::DrawLabeling, false );

connect( mMapCanvas, SIGNAL( extentsChanged() ), this, SLOT( drawExtentRect() ) );
Expand Down Expand Up @@ -281,6 +279,8 @@ void QgsMapOverviewCanvas::refresh()
connect( mJob, SIGNAL( finished() ), this, SLOT( mapRenderingFinished() ) );
mJob->start();

setBackgroundColor( mMapCanvas->mapSettings().backgroundColor() );

// schedule repaint
update();

Expand Down

0 comments on commit 5b3e014

Please sign in to comment.