summaryrefslogtreecommitdiffstats
path: root/src/flood-context.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/flood-context.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 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index 9c527613e..4b16a5e10 100644
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
@@ -511,11 +511,15 @@ static void do_trace(bitmap_coords_info bci, guchar *trace_px, SPDesktop *deskto
pathRepr->setPosition(-1);
if (union_with_selection) {
- desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, ngettext("Area filled, path with <b>%d</b> node created and unioned with selection.","Area filled, path with <b>%d</b> nodes created and unioned with selection.",sp_nodes_in_path(SP_PATH(reprobj))), sp_nodes_in_path(SP_PATH(reprobj)));
+ desktop->messageStack()->flashF( Inkscape::WARNING_MESSAGE,
+ ngettext("Area filled, path with <b>%d</b> node created and unioned with selection.","Area filled, path with <b>%d</b> nodes created and unioned with selection.",
+ SP_PATH(reprobj)->nodesInPath()), SP_PATH(reprobj)->nodesInPath() );
selection->add(reprobj);
sp_selected_path_union_skip_undo(desktop);
} else {
- desktop->messageStack()->flashF(Inkscape::WARNING_MESSAGE, ngettext("Area filled, path with <b>%d</b> node created.","Area filled, path with <b>%d</b> nodes created.",sp_nodes_in_path(SP_PATH(reprobj))), sp_nodes_in_path(SP_PATH(reprobj)));
+ desktop->messageStack()->flashF( Inkscape::WARNING_MESSAGE,
+ ngettext("Area filled, path with <b>%d</b> node created.","Area filled, path with <b>%d</b> nodes created.",
+ SP_PATH(reprobj)->nodesInPath()), SP_PATH(reprobj)->nodesInPath() );
selection->set(reprobj);
}