summaryrefslogtreecommitdiffstats
path: root/src/flood-context.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-24 15:28:27 +0000
committerAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-24 15:28:27 +0000
commit7396564ea83c67c0e40a8b0aa453a13ddf21e0e0 (patch)
treec3075988c60dd57917e7631f0d9dd0e321410522 /src/flood-context.cpp
parentMore on c++ification and some XML privatisation (diff)
downloadinkscape-7396564ea83c67c0e40a8b0aa453a13ddf21e0e0.tar.gz
inkscape-7396564ea83c67c0e40a8b0aa453a13ddf21e0e0.zip
Yet mor in c++ification
(bzr r9546.1.11)
Diffstat (limited to 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index 5181809dc..b9aaf902e 100644
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
@@ -418,7 +418,7 @@ static void do_trace(bitmap_coords_info bci, guchar *trace_px, SPDesktop *deskto
gray_map->destroy(gray_map);
//XML Tree being used here directly while it shouldn't be...."
- Inkscape::XML::Node *layer_repr = SP_GROUP(desktop->currentLayer())->getRepr();
+ //Inkscape::XML::Node *layer_repr = SP_GROUP(desktop->currentLayer())->getRepr();
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
long totalNodeCount = 0L;
@@ -482,7 +482,8 @@ static void do_trace(bitmap_coords_info bci, guchar *trace_px, SPDesktop *deskto
g_free(str);
}
- layer_repr->addChild(pathRepr, NULL);
+ //layer_repr->addChild(pathRepr, NULL);
+ desktop->currentLayer()->addChild(pathRepr,NULL);
SPObject *reprobj = document->getObjectByRepr(pathRepr);
if (reprobj) {
@@ -1137,9 +1138,10 @@ static gint sp_flood_context_item_handler(SPEventContext *event_context, SPItem
SPItem *item = sp_event_context_find_item (desktop, button_w, TRUE, TRUE);
- Inkscape::XML::Node *pathRepr = SP_OBJECT_REPR(item);
+ //Inkscape::XML::Node *pathRepr = SP_OBJECT_REPR(item);
/* Set style */
- sp_desktop_apply_style_tool (desktop, pathRepr, "/tools/paintbucket", false);
+ //sp_desktop_apply_style_tool (desktop, pathRepr, "/tools/paintbucket", false);
+ desktop->applyCurrentOrToolStyle(item, "/tools/paintbucket", false);
SPDocumentUndo::done(sp_desktop_document(desktop), SP_VERB_CONTEXT_PAINTBUCKET, _("Set style on object"));
ret = TRUE;
}