Skip to content
Permalink
Browse files
Fix for crash scenario: If the first thing you do in qgis is open gra…
…ss layer, edit it using grass edit tools then return to work with a non grass layer and touch the canvas qgis crashes because mNonEditMapTool is not initialised.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8757 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 11, 2008
1 parent a702048 commit fa83596
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1419,6 +1419,8 @@ void QgisApp::createCanvas()
mMapTools.mAddRing = new QgsMapToolAddRing(mMapCanvas);
mMapTools.mAddRing->setAction(mActionAddRing);
mMapTools.mAddIsland = new QgsMapToolAddIsland(mMapCanvas);
//ensure that non edit tool is initialised or we will get crashes in some situations
mNonEditMapTool = mMapTools.mPan;
}

void QgisApp::createOverview()

0 comments on commit fa83596

Please sign in to comment.