[GRASS-SVN] r54311 - grass/trunk/gui/wxpython/iclass
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 16 02:33:35 PST 2012
Author: annakrat
Date: 2012-12-16 02:33:35 -0800 (Sun, 16 Dec 2012)
New Revision: 54311
Modified:
grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: fix removing temporary maps
Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py 2012-12-16 08:46:46 UTC (rev 54310)
+++ grass/trunk/gui/wxpython/iclass/frame.py 2012-12-16 10:33:35 UTC (rev 54311)
@@ -220,15 +220,15 @@
def RemoveTempRaster(self, raster):
"""!Removes temporary raster maps"""
- self.trainingMapManager.RemoveTemporaryLayer(raster)
- self.previewMapManager.RemoveTemporaryLayer(raster)
+ self.GetFirstMap().Clean()
+ self.GetSecondMap().Clean()
ret = RunCommand(prog = 'g.remove',
parent = self,
rast = raster)
if ret != 0:
return False
return True
-
+
def AddToolbar(self, name):
"""!Add defined toolbar to the window
More information about the grass-commit
mailing list