summaryrefslogtreecommitdiff
path: root/src/editorui/editormain.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-22 23:06:49 +0100
committerTreeki <treeki@gmail.com>2011-11-22 23:06:49 +0100
commitd34c52d7e869750a1e3c6256f32a5019b212c20f (patch)
tree1e23296e6eeca61558bf7840878ebf51fd2218f9 /src/editorui/editormain.py
parent3acb4765f5f80f0354213c1e23b9a2565bcdb58c (diff)
downloadkoopatlas-d34c52d7e869750a1e3c6256f32a5019b212c20f.tar.gz
koopatlas-d34c52d7e869750a1e3c6256f32a5019b212c20f.zip
this should *hopefully* fix the weird deletion bug
Diffstat (limited to '')
-rw-r--r--src/editorui/editormain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py
index 8ffd034..f25452b 100644
--- a/src/editorui/editormain.py
+++ b/src/editorui/editormain.py
@@ -260,11 +260,14 @@ class KPEditorWidget(QtGui.QGraphicsView):
endNode = origPath._endNodeRef()
origPath.setEnd(node)
- origPath.qtItem.updatePosition()
nodeItem = KPEditorNode(node)
self.scene().addItem(nodeItem)
+ # TODO: fix this ugly bit of code
+ item._endNodeRef = weakref.ref(nodeItem)
+ item.updatePosition()
+
self.painting = node
self.paintingItem = item
self.paintBeginPosition = (x - 12, y - 12)