fix issue that if located variable was dropped in location column, then address was changed in wrong row (row - 1).
It's not neccessary to carry about label size. YToRow() does the work.
--- a/controls/VariablePanel.py Thu Nov 24 15:37:03 2016 +0300
+++ b/controls/VariablePanel.py Thu Nov 24 15:46:17 2016 +0300
@@ -246,7 +246,7 @@
self.ParentWindow.ParentWindow.Select()
x, y = self.ParentWindow.VariablesGrid.CalcUnscrolledPosition(x, y)
col = self.ParentWindow.VariablesGrid.XToCol(x)
- row = self.ParentWindow.VariablesGrid.YToRow(y - self.ParentWindow.VariablesGrid.GetColLabelSize())
+ row = self.ParentWindow.VariablesGrid.YToRow(y)
message = None
element_type = self.ParentWindow.ElementType
try: