diff options
Diffstat (limited to 'src/sp-gradient.cpp')
| -rw-r--r-- | src/sp-gradient.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp index 84a0a9870..3fd120fb3 100644 --- a/src/sp-gradient.cpp +++ b/src/sp-gradient.cpp @@ -638,6 +638,20 @@ sp_gradient_modified(SPObject *object, guint flags) } } + +bool SPGradient::isSolid() const +{ + bool solid = false; + if ( SP_GRADIENT_HAS_STOPS(this) && (sp_number_of_stops(this) == 0) ) { + gchar const * attr = repr->attribute("osb:paint"); + if (attr && !strcmp(attr, "solid")) { + solid = true; + } + } + return solid; +} + + /** * Write gradient attributes to repr. */ |
