fix not saving location address from variable panel
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 26 Oct 2016 15:51:20 +0300
changeset 1550 deadfe7377e9
parent 1549 f526fd97a7b0
child 1551 131610a94da0
fix not saving location address from variable panel

this regression was introduced by commit 3518d10
controls/LocationCellEditor.py
--- a/controls/LocationCellEditor.py	Mon Oct 24 18:02:53 2016 +0300
+++ b/controls/LocationCellEditor.py	Wed Oct 26 15:51:20 2016 +0300
@@ -172,11 +172,11 @@
         
     if wx.VERSION >= (3, 0, 0):
         def EndEdit(self, row, col, grid, oldval):
-            self.EndEditInternal(row, col, grid, oldval)
+            return self.EndEditInternal(row, col, grid, oldval)
     else:
         def EndEdit(self, row, col, grid):
             old_loc = self.Table.GetValueByName(row, 'Location')            
-            self.EndEditInternal(row, col, grid, old_loc)
+            return self.EndEditInternal(row, col, grid, old_loc)
     
     def SetSize(self, rect):
         self.CellControl.SetDimensions(rect.x + 1, rect.y,