Skip to content

Commit 0b3e22f

Browse files

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,6 @@ void QgsMapCanvas::setCanvasColor(const QColor & theColor)
841841

842842
// background of Q3Canvas
843843
mCanvas->setBackgroundColor(theColor);
844-
845-
if (mMapOverview)
846-
mMapOverview->setbgColor(theColor);
847844
} // setbgColor
848845

849846

‎src/gui/qgsmapoverviewcanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ QgsMapOverviewCanvas::QgsMapOverviewCanvas(QWidget * parent, QgsMapCanvas* mapCa
7070

7171
mMapRender = new QgsMapRender;
7272
mMapRender->setOverview();
73-
setbgColor(Qt::white);
73+
74+
setbgColor(palette().window().color());
7475
}
7576

7677
QgsMapOverviewCanvas::~QgsMapOverviewCanvas()

0 commit comments

Comments
 (0)
Please sign in to comment.