浏览代码

reset column sorting after reload

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43774 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 年之前
父节点
当前提交
6d9a3a3d06
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      gui/wxpython/gui_modules/gcpmanager.py

+ 4 - 0
gui/wxpython/gui_modules/gcpmanager.py

@@ -1265,6 +1265,10 @@ class GCP(MapFrame, wx.Frame, ColumnSorterMixin):
         self.list.LoadData()
         self.itemDataMap = self.mapcoordlist
 
+        if self._col != -1:
+            self.list.ClearColumnImage(self._col)
+        self._colSortFlag = [1] * self.list.GetColumnCount()
+
         # draw GCPs (source and target)
         sourceMapWin = self.SrcMapWindow
         sourceMapWin.UpdateMap(render=False, renderVector=False)