diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-11 06:43:24 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-08-11 06:43:24 +0000 |
| commit | 19117c36082531a00df461260f917d1207edde1f (patch) | |
| tree | 4670bf8aef55b561c790e6498e8ad88592a83d75 /src/context-fns.cpp | |
| parent | Implement constrained snapping to nodes (diff) | |
| download | inkscape-19117c36082531a00df461260f917d1207edde1f.tar.gz inkscape-19117c36082531a00df461260f917d1207edde1f.zip | |
Clear pointers in the snapmanager if they're no longer needed.
(bzr r9697)
Diffstat (limited to 'src/context-fns.cpp')
| -rw-r--r-- | src/context-fns.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context-fns.cpp b/src/context-fns.cpp index b22cd488d..6da1813ca 100644 --- a/src/context-fns.cpp +++ b/src/context-fns.cpp @@ -209,6 +209,8 @@ Geom::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item p[0] *= desktop->dt2doc(); p[1] *= desktop->dt2doc(); + m.unSetup(); + return Geom::Rect(Geom::Point(MIN(p[0][Geom::X], p[1][Geom::X]), MIN(p[0][Geom::Y], p[1][Geom::Y])), Geom::Point(MAX(p[0][Geom::X], p[1][Geom::X]), MAX(p[0][Geom::Y], p[1][Geom::Y]))); } |
