summaryrefslogtreecommitdiffstats
path: root/src/sp-filter-primitive.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-07-30 17:56:34 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-07-30 17:56:34 +0000
commit901fe3dd84279ed537cb6abb4efc1527adda93b1 (patch)
tree6f53d66fb17e70cc5eda4766c761bb519469c76e /src/sp-filter-primitive.cpp
parentupdate to trunk (diff)
parentfix for a small warning introduced in r14142 (cf <https://bugs.launchpad.net/... (diff)
downloadinkscape-901fe3dd84279ed537cb6abb4efc1527adda93b1.tar.gz
inkscape-901fe3dd84279ed537cb6abb4efc1527adda93b1.zip
update to trunk
(bzr r12588.1.46)
Diffstat (limited to 'src/sp-filter-primitive.cpp')
-rw-r--r--src/sp-filter-primitive.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-filter-primitive.cpp b/src/sp-filter-primitive.cpp
index 1f85c8193..b18850914 100644
--- a/src/sp-filter-primitive.cpp
+++ b/src/sp-filter-primitive.cpp
@@ -194,7 +194,9 @@ Inkscape::XML::Node* SPFilterPrimitive::write(Inkscape::XML::Document *doc, Inks
int sp_filter_primitive_read_in(SPFilterPrimitive *prim, gchar const *name)
{
- if (!name) return Inkscape::Filters::NR_FILTER_SLOT_NOT_SET;
+ if (!name || !prim){
+ return Inkscape::Filters::NR_FILTER_SLOT_NOT_SET;
+ }
// TODO: are these case sensitive or not? (assumed yes)
switch (name[0]) {
case 'S':