summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-01-17 20:25:50 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2012-01-17 20:25:50 +0000
commitcf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19 (patch)
treefb8985008fda43525f296bc50584d8d4abc3d5dc /src/object-snapper.cpp
parentchange pencil tool dropdown shapes to use powerstroke, instead of pattern alo... (diff)
downloadinkscape-cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19.tar.gz
inkscape-cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19.zip
turn SPPath into a class, and add some methods...
(bzr r10897)
Diffstat (limited to '')
-rw-r--r--src/object-snapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index 3b1b327ee..1a4d79a7d 100644
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
@@ -412,7 +412,7 @@ void Inkscape::ObjectSnapper::_collectPaths(Geom::Point /*p*/,
// This also leads to a lag of approx. 500 msec (in my lousy test set-up).
bool very_complex_path = false;
if (SP_IS_PATH(root_item)) {
- very_complex_path = sp_nodes_in_path(SP_PATH(root_item)) > 500;
+ very_complex_path = SP_PATH(root_item)->nodesInPath() > 500;
}
if (!very_complex_path && root_item && _snapmanager->snapprefs.isTargetSnappable(SNAPTARGET_PATH, SNAPTARGET_PATH_INTERSECTION)) {