diff options
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/style.cpp b/src/style.cpp index ac4f1f37e..17ad85dc3 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -721,8 +721,8 @@ SPStyle::readIfUnset(SPAttributeEnum id, gchar const *val, SPStyleSrc const &sou } // return if is seted property -bool -SPStyle::isSet(SPAttributeEnum id) { +bool SPStyle::isSet(SPAttributeEnum id) +{ bool set = false; switch (id) { case SP_PROP_CLIP_PATH: @@ -730,7 +730,8 @@ SPStyle::isSet(SPAttributeEnum id) { case SP_PROP_MASK: return set; case SP_PROP_FILTER: - if( !filter.inherit ) set = filter.set; + if (!filter.inherit) + set = filter.set; return set; case SP_PROP_COLOR_INTERPOLATION: // We read it but issue warning @@ -912,11 +913,11 @@ SPStyle::_mergeDecl( CRDeclaration const *const decl, SPStyleSrc const &source gchar *const str_value = reinterpret_cast<gchar *>(str_value_unsigned); // Add "!important" rule if necessary as this is not handled by cr_term_to_string(). - gchar const * important = decl->important ? " !important" : ""; + gchar const *important = decl->important ? " !important" : ""; Inkscape::CSSOStringStream os; os << str_value << important; - readIfUnset( prop_idx, os.str().c_str(), source ); + readIfUnset(prop_idx, os.str().c_str(), source); g_free(str_value); } } |
