summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2014-10-14 09:48:00 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2014-10-14 09:48:00 +0000
commitdc40ef8fd79f61fb7735911744f68657aef05c70 (patch)
tree811c34e92b0992fded0fde0047e3628fd1fabe31 /src/style-internal.cpp
parentMerged src/style.cpp from svg-paints-support branch (diff)
downloadinkscape-dc40ef8fd79f61fb7735911744f68657aef05c70.tar.gz
inkscape-dc40ef8fd79f61fb7735911744f68657aef05c70.zip
Merged src/style-internal.cpp from svg-paints-support branch
(bzr r13611.1.5)
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index a81a2799d..b858e5cb6 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -964,7 +964,11 @@ SPIPaint::read( gchar const *str ) {
if (!value.href && document) {
// std::cout << " Creating value.href" << std::endl;
value.href = new SPPaintServerReference(document);
- value.href->changedSignal().connect(sigc::bind(sigc::ptr_fun((this == &style->fill)? sp_style_fill_paint_server_ref_changed : sp_style_stroke_paint_server_ref_changed), style));
+ if (this == &style->fill) {
+ style->fill_ps_changed_connection = value.href->changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_style_fill_paint_server_ref_changed), style));
+ } else {
+ style->stroke_ps_changed_connection = value.href->changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_style_stroke_paint_server_ref_changed), style));
+ }
}
// std::cout << "uri: " << (uri?uri:"null") << std::endl;