Skip to content

Commit bbe0837

Browse files
committed
Avoid Qt warning on startup
...by not trying to add a map item to canvas twice
1 parent ada0160 commit bbe0837

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/gui/qgsmapcanvas.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ QgsMapCanvas::QgsMapCanvas( QWidget * parent, const char *name )
223223

224224
// create map canvas item which will show the map
225225
mMap = new QgsMapCanvasMap( this );
226-
mScene->addItem( mMap );
227226

228227
// project handling
229228
connect( QgsProject::instance(), SIGNAL( readProject( const QDomDocument & ) ),

0 commit comments

Comments
 (0)