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/qgis@8757 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 11, 2008
1 parent 5e3c967 commit 40f9ccabf9d581eff75a09ab4a32aeb1bf8e6bc9
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgisapp.cpp
@@ -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 40f9cca

Please sign in to comment.