diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-04-05 18:02:40 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2012-04-05 18:02:40 +0000 |
| commit | 59550e355d8938842f3c0816ec9711c43080a051 (patch) | |
| tree | b70477c48c916b8b1049777895f4b3a9f460c48e /src/sp-gradient.cpp | |
| parent | add NULL checks to perhaps fix bug 970105 (diff) | |
| download | inkscape-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.cpp | 2 |
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. |
