Skip to content

Commit

Permalink
fixing black canvas issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi committed Aug 21, 2011
1 parent 94ff04b commit 4308a4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -87,7 +87,9 @@ QgsMapCanvas::QgsMapCanvas( QWidget * parent, const char *name )
//disable the update that leads to the resize crash
if ( viewport() )
{
viewport()->setAttribute( Qt::WA_PaintOnScreen, true );
#ifndef ANDROID
viewport()->setAttribute( Qt::WA_PaintOnScreen, true );
#endif //ANDROID
}

mScene = new QGraphicsScene();
Expand Down

0 comments on commit 4308a4b

Please sign in to comment.