# HG changeset patch # User Thinker K.F. Li # Date 1305346857 -28800 # Node ID 80e0559784612807570e42828bc9ccc5cdd017ef # Parent 31a21656c0a84c19da8c2124d777fc2a01169128 Fix issue of showing selection box at wrong place for transition diff -r 31a21656c0a8 -r 80e055978461 pyink/FSM_window.py --- a/pyink/FSM_window.py Sat May 14 01:07:23 2011 +0800 +++ b/pyink/FSM_window.py Sat May 14 12:20:57 2011 +0800 @@ -414,7 +414,13 @@ pass def _translate_page_xy(self, x, y): - return x, y + doc = self._doc + root = doc.root() + page_h_txt = root.getAttribute('height') + page_h = float(page_h_txt) + svgx = x + svgy = page_h - y + return svgx, svgy @staticmethod def _update_graph(path, arrow_node, path_node):