aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-09-27 12:11:19 +0200
committerAdrien Tétar2015-09-27 12:11:19 +0200
commite21fdb8f4e3de07a9b86e69609af7f1c33b39b6f (patch)
treebf9d6e8f4e0278fbf3ec4fd05bc04e25912f30cc /Lib/defconQt/glyphView.py
parente5e4416570597302b3b90802495d8dd2133a9678 (diff)
downloadtrufont-e21fdb8f4e3de07a9b86e69609af7f1c33b39b6f.tar.bz2
glyphView: reload points when deleting
Diffstat (limited to 'Lib/defconQt/glyphView.py')
-rw-r--r--Lib/defconQt/glyphView.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py
index 3b002c9..48e761d 100644
--- a/Lib/defconQt/glyphView.py
+++ b/Lib/defconQt/glyphView.py
@@ -330,7 +330,6 @@ class OnCurvePointItem(QGraphicsPathItem):
scene = self.scene()
glyph = scene._glyphObject
- scene._blocked = True
if len(self._contour.segments) < 2:
glyph.removeContour(self._contour)
else:
@@ -346,8 +345,7 @@ class OnCurvePointItem(QGraphicsPathItem):
self._contour.removeSegment(self.getSegmentIndex(), preserveShape)
nextOnCurveIndex = findNextOnCurve(self)
self._contour.setStartPoint(nextOnCurveIndex)
- scene._blocked = False
- scene.removeItem(self)
+ # This object will be removed from scene by notification mechanism
def setPointPath(self, scale=None):
path = QPainterPath()