summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-10-12 17:25:47 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-10-12 17:25:47 +0000
commit2f2f164bbe75b4a4bb6d553242cecd587ed03456 (patch)
tree01eb193e68007cda7df42beba9bfcf67b64dc33e /src
parentpath combine: add an assert to indicate that item list cannot be empty (diff)
downloadinkscape-2f2f164bbe75b4a4bb6d553242cecd587ed03456.tar.gz
inkscape-2f2f164bbe75b4a4bb6d553242cecd587ed03456.zip
DrawingItem: add NULL check (bug found by clang static analyzer)
(bzr r13603)
Diffstat (limited to 'src')
-rw-r--r--src/display/drawing-item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp
index 80eb69546..2ea3641dc 100644
--- a/src/display/drawing-item.cpp
+++ b/src/display/drawing-item.cpp
@@ -967,7 +967,7 @@ DrawingItem::_setStyleCommon(SPStyle *&_style, SPStyle *style)
if (_style) sp_style_unref(_style);
_style = style;
- if (style->filter.set && style->getFilter()) {
+ if (style && style->filter.set && style->getFilter()) {
if (!_filter) {
int primitives = sp_filter_primitive_count(SP_FILTER(style->getFilter()));
_filter = new Inkscape::Filters::Filter(primitives);