summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index b03e848ba..df08d0adf 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -693,6 +693,14 @@ SPIString::write( guint const flags, SPIBase const *const base) const {
}
void
+SPIString::clear() {
+ SPIBase::clear();
+ g_free( value );
+ value = NULL;
+ if( value_default ) value = strdup( value_default );
+}
+
+void
SPIString::cascade( const SPIBase* const parent ) {
if( const SPIString* p = dynamic_cast<const SPIString*>(parent) ) {
if( inherits && (!set || inherit) ) {