diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-01-25 13:35:08 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-01-25 13:35:08 +0000 |
| commit | 3b35e676c9107f8627587365f6e01ebf0093e9c5 (patch) | |
| tree | 8e5d306024820cf9b2adf2e5b4d4735959c8803e /src/seltrans.cpp | |
| parent | removing void files (diff) | |
| download | inkscape-3b35e676c9107f8627587365f6e01ebf0093e9c5.tar.gz inkscape-3b35e676c9107f8627587365f6e01ebf0093e9c5.zip | |
- The snap-delay mechanism should now be more robust. From now on, it must be turned on and off explicitely within each context. This prevents delayed snapping events from being fired after the context or context's state has changed.
- Creating single dots now snaps
(bzr r7172)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 0fd15593c..b1917edfd 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -366,6 +366,8 @@ void Inkscape::SelTrans::grab(Geom::Point const &p, gdouble x, gdouble y, bool s } } + sp_canvas_set_snap_delay_active(_desktop->canvas, true); + // The lines below are useful for debugging any snapping issues, as they'll spit out all points that are considered for snapping /*std::cout << "Number of snap points: " << _snap_points.size() << std::endl; @@ -432,6 +434,8 @@ void Inkscape::SelTrans::ungrab() _grabbed = false; _show_handles = true; + sp_canvas_set_snap_delay_active(_desktop->canvas, false); + Inkscape::Selection *selection = sp_desktop_selection(_desktop); _updateVolatileState(); |
