diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-08-26 19:35:34 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-08-26 19:35:34 +0000 |
| commit | 8e2a1a4407a19fc9b794c2c29cc1e6eb41c83559 (patch) | |
| tree | 062e8e1f329373a873532a746c3ef2ca81d6fc94 /src/sp-paint-server.cpp | |
| parent | add 'little' comment (diff) | |
| parent | Prevent crash when "vector" doesn't exist (i.e. for mesh gradient). (diff) | |
| download | inkscape-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.cpp | 4 |
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 ); } |
