[GRASS-SVN] r43772 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 3 06:38:02 EDT 2010


Author: mmetz
Date: 2010-10-03 10:38:02 +0000 (Sun, 03 Oct 2010)
New Revision: 43772

Modified:
   grass/trunk/gui/wxpython/gui_modules/gcpmanager.py
Log:
avoid redundant rendering

Modified: grass/trunk/gui/wxpython/gui_modules/gcpmanager.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcpmanager.py	2010-10-03 04:52:08 UTC (rev 43771)
+++ grass/trunk/gui/wxpython/gui_modules/gcpmanager.py	2010-10-03 10:38:02 UTC (rev 43772)
@@ -1245,10 +1245,6 @@
         if self.CheckGCPcount():
             # calculate RMS
             self.RMSError(self.xygroup, self.gr_order)
-        else:
-            # draw GCPs (source and target)
-            sourceMapWin.UpdateMap(render=False, renderVector=False)
-            targetMapWin.UpdateMap(render=False, renderVector=False)
 
     def ReloadGCPs(self, event):
         """!Reload data from file"""
@@ -1268,6 +1264,13 @@
 
         self.list.LoadData()
         self.itemDataMap = self.mapcoordlist
+
+        # draw GCPs (source and target)
+        sourceMapWin = self.SrcMapWindow
+        sourceMapWin.UpdateMap(render=False, renderVector=False)
+        if self.show_target:
+            targetMapWin = self.TgtMapWindow
+            targetMapWin.UpdateMap(render=False, renderVector=False)
     
     def OnFocus(self, event):
         # self.grwiz.SwitchEnv('source')
@@ -1278,6 +1281,12 @@
         RMS button handler
         """
         self.RMSError(self.xygroup,self.gr_order)
+
+        sourceMapWin = self.SrcMapWindow
+        sourceMapWin.UpdateMap(render=False, renderVector=False)
+        if self.show_target:
+            targetMapWin = self.TgtMapWindow
+            targetMapWin.UpdateMap(render=False, renderVector=False)
         
     def CheckGCPcount(self, msg=False):
         """
@@ -1642,12 +1651,6 @@
         self.bkw_rmserror = round((sumsq_bkw_err/GCPcount)**0.5,4)
         self.list.ResizeColumns()
 
-        sourceMapWin = self.SrcMapWindow
-        sourceMapWin.UpdateMap(render=False, renderVector=False)
-        if self.show_target:
-            targetMapWin = self.TgtMapWindow
-            targetMapWin.UpdateMap(render=False, renderVector=False)
-
     def GetNewExtend(self, region, map = None):
 
         coord_file = utils.GetTempfile()



More information about the grass-commit mailing list