summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-clone-original.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-03-16 22:29:49 +0000
committerJabiertxof <jtx@jtx>2017-03-16 22:29:49 +0000
commitfdd8ce77fa742072a1cea8136acaeed1dae079b5 (patch)
tree6418cb90555b397b3c39ed8a07e5f3f0dd158a6a /src/live_effects/lpe-clone-original.cpp
parentFix rendering when canvas rotated. General code clean-up and documentation. (diff)
downloadinkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.tar.gz
inkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.zip
Remove some compiling warns
(bzr r15599)
Diffstat (limited to 'src/live_effects/lpe-clone-original.cpp')
-rw-r--r--src/live_effects/lpe-clone-original.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-clone-original.cpp b/src/live_effects/lpe-clone-original.cpp
index 440af6f9c..c41b1ef95 100644
--- a/src/live_effects/lpe-clone-original.cpp
+++ b/src/live_effects/lpe-clone-original.cpp
@@ -193,7 +193,7 @@ LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, bool live, co
while (*styleiter != NULL) {
const char* attribute = (*styleiter);
const char* origin_attribute = sp_repr_css_property(css_origin, attribute, "");
- if (origin_attribute == "") {
+ if (!strlen(origin_attribute)) { //==0
sp_repr_css_set_property (css_dest, attribute, NULL);
} else {
sp_repr_css_set_property (css_dest, attribute, origin_attribute);