Skip to content

Commit 4308a4b

Browse files
committed
fixing black canvas issue
1 parent 94ff04b commit 4308a4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/qgsmapcanvas.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ QgsMapCanvas::QgsMapCanvas( QWidget * parent, const char *name )
8787
//disable the update that leads to the resize crash
8888
if ( viewport() )
8989
{
90-
viewport()->setAttribute( Qt::WA_PaintOnScreen, true );
90+
#ifndef ANDROID
91+
viewport()->setAttribute( Qt::WA_PaintOnScreen, true );
92+
#endif //ANDROID
9193
}
9294

9395
mScene = new QGraphicsScene();

0 commit comments

Comments
 (0)