Skip to content

Commit

Permalink
Fix for crash scenario: If the first thing you do in qgis is open gra…
Browse files Browse the repository at this point in the history
…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.
2 changes: 2 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fa83596

Please sign in to comment.