diff options
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index dfcc0eead..427ca31fe 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -515,7 +515,7 @@ objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_re prev[0] = prev[1] = prev[2] = 0.0; bool same_color = true; - for (auto obj : objects) { + for (auto obj : objects) { if (!obj) { continue; } @@ -525,6 +525,9 @@ objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_re } SPIPaint *paint = isfill? &style->fill : &style->stroke; + if (!paint) { + continue; + } // We consider paint "effectively set" for anything within text hierarchy SPObject *parent = obj->parent; |
