summaryrefslogtreecommitdiffstats
path: root/src/sp-gradient.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-05 18:02:40 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-05 18:02:40 +0000
commit59550e355d8938842f3c0816ec9711c43080a051 (patch)
treeb70477c48c916b8b1049777895f4b3a9f460c48e /src/sp-gradient.cpp
parentadd NULL checks to perhaps fix bug 970105 (diff)
downloadinkscape-59550e355d8938842f3c0816ec9711c43080a051.tar.gz
inkscape-59550e355d8938842f3c0816ec9711c43080a051.zip
fix crash (bug #941317)
Fixed bugs: - https://launchpad.net/bugs/941317 (bzr r11157)
Diffstat (limited to 'src/sp-gradient.cpp')
-rw-r--r--src/sp-gradient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp
index 0934c0705..1a99485f6 100644
--- a/src/sp-gradient.cpp
+++ b/src/sp-gradient.cpp
@@ -1018,7 +1018,7 @@ void SPGradient::rebuildVector()
vector.stops.clear();
- SPGradient *reffed = ref->getObject();
+ SPGradient *reffed = ref ? ref->getObject() : NULL;
if ( !hasStops() && reffed ) {
/* Copy vector from referenced gradient */
vector.built = true; // Prevent infinite recursion.