summaryrefslogtreecommitdiffstats
path: root/src/sp-paint-server.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-08-26 19:35:34 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-08-26 19:35:34 +0000
commit8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559 (patch)
tree062e8e1f329373a873532a746c3ef2ca81d6fc94 /src/sp-paint-server.cpp
parentadd 'little' comment (diff)
parentPrevent crash when "vector" doesn't exist (i.e. for mesh gradient). (diff)
downloadinkscape-8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559.tar.gz
inkscape-8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559.zip
update to trunk
(bzr r13645.1.115)
Diffstat (limited to 'src/sp-paint-server.cpp')
-rw-r--r--src/sp-paint-server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-paint-server.cpp b/src/sp-paint-server.cpp
index c3416c6c8..d445ca0a7 100644
--- a/src/sp-paint-server.cpp
+++ b/src/sp-paint-server.cpp
@@ -39,7 +39,9 @@ SPPaintServer::~SPPaintServer() {
bool SPPaintServer::isSwatch() const
{
- return swatch;
+ if( this ) // Protect against assumption that "vector" always exists.
+ return swatch;
+ return( false );
}