[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Snap to object doesn't work for new objects
From: |
Bernhard Herzog |
Subject: |
Re: Snap to object doesn't work for new objects |
Date: |
Thu, 09 Oct 2003 20:49:06 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
Valentin Ungureanu <address@hidden> writes:
> In sketch 0.6, with snap to objects activated, the list with snap
> points is not actualized if a new object is created.
Good catch.
> Calling update_snap_points from do_end_creation solves this:
This is not quite the right fix, though. Normally, update_snap_points is
called from the doc_was_edited method which is called whenever the
document sends an EDITED message. Unfortunately it doesn't do that when
new objects are inserted. The right fix then is to make sure it does:
--- Sketch/Graphics/document.py.~1~ Thu May 23 22:22:50 2002
+++ Sketch/Graphics/document.py Thu Oct 9 20:41:38 2003
@@ -522,7 +522,7 @@
except:
self.abort_transaction()
finally:
- self.end_transaction()
+ self.end_transaction(queue_edited = 1)
def SelectPoint(self, p, device, type = SelectSet):
# find object at point, and modify the current selection
This fix will be in 0.6.16.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
Thuban http://thuban.intevation.org/