summaryrefslogtreecommitdiffstats
path: root/src/sp-mesh-array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-mesh-array.cpp')
-rw-r--r--src/sp-mesh-array.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-mesh-array.cpp b/src/sp-mesh-array.cpp
index 87329b3f2..042800fbf 100644
--- a/src/sp-mesh-array.cpp
+++ b/src/sp-mesh-array.cpp
@@ -1096,7 +1096,7 @@ static SPColor default_color( SPItem *item ) {
color = paint.value.color;
} else if ( paint.isPaintserver() ) {
SPObject const *server = item->style->getFillPaintServer();
- if ( SP_IS_GRADIENT(server) ) {
+ if ( SP_IS_GRADIENT(server) && SP_GRADIENT(server)->getVector() ) {
SPStop *firstStop = SP_GRADIENT(server)->getVector()->getFirstStop();
if ( firstStop ) {
color = firstStop->getEffectiveColor();