Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addons/bubblemessage.py
diff options
context:
space:
mode:
authorVincent Vinet <vince.vinet@gmail.com>2009-11-19 16:33:26 (GMT)
committer Vincent Vinet <vince.vinet@gmail.com>2009-11-19 16:34:28 (GMT)
commitdee6412f6beae82952ed0a07fc2bfdfb0cbb3e79 (patch)
tree1fa73b93a70150dc23f610d34e8b62e727f0f2da /addons/bubblemessage.py
parent40f836b057896469bca69772d9fc7168b2f8c644 (diff)
refac property editing in the creator
Diffstat (limited to 'addons/bubblemessage.py')
-rw-r--r--addons/bubblemessage.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py
index 1ed1fe0..aaf086c 100644
--- a/addons/bubblemessage.py
+++ b/addons/bubblemessage.py
@@ -96,8 +96,9 @@ class BubbleMessage(Action):
self._drag = DragWrapper(self._bubble, self.position, True)
def exit_editmode(self, *args):
- x,y = self._drag.position
- self.position = (int(x), int(y))
+ if self._drag.moved:
+ x,y = self._drag.position
+ self.position = (int(x), int(y))
if self._drag:
self._drag.draggable = False
self._drag = None