From 3466681abbcf33b09fada54e74cf55915714e2b2 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 28 Apr 2014 16:13:36 +0200 Subject: Clean up of style code: Add default to SPIString for use with 'font-family'. (bzr r13315) --- src/style-internal.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/style-internal.cpp') 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 @@ -692,6 +692,14 @@ SPIString::write( guint const flags, SPIBase const *const base) const { return Glib::ustring(""); } +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(parent) ) { -- cgit v1.2.3