Skip to content

Commit 40f9cca

Browse files
author
timlinux
committedJul 11, 2008
Fix for crash scenario: If the first thing you do in qgis is open grass 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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,8 @@ void QgisApp::createCanvas()
14191419
mMapTools.mAddRing = new QgsMapToolAddRing(mMapCanvas);
14201420
mMapTools.mAddRing->setAction(mActionAddRing);
14211421
mMapTools.mAddIsland = new QgsMapToolAddIsland(mMapCanvas);
1422+
//ensure that non edit tool is initialised or we will get crashes in some situations
1423+
mNonEditMapTool = mMapTools.mPan;
14221424
}
14231425

14241426
void QgisApp::createOverview()

0 commit comments

Comments
 (0)
Please sign in to comment.