summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-21 19:51:35 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-21 19:51:35 +0000
commit354e3b4f0fd6fcca9995d611b6f031dfa9068ee7 (patch)
tree6bd095dbd0218b72f29147a6ede741092565dda9 /src/style.cpp
parentFix for 934721 : Convert SpellCheck dialog to a dockable dialog (diff)
downloadinkscape-354e3b4f0fd6fcca9995d611b6f031dfa9068ee7.tar.gz
inkscape-354e3b4f0fd6fcca9995d611b6f031dfa9068ee7.zip
cppcheck: null pointer dereference fix
(bzr r11007)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 4244798bf..93bd5ac76 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -506,7 +506,7 @@ sp_style_new_from_object(SPObject *object)
style->object = object;
style->release_connection = object->connectRelease(sigc::bind<1>(sigc::ptr_fun(&sp_style_object_release), style));
- if (object && object->cloned) {
+ if (object->cloned) {
style->cloned = true;
}