diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-04-28 14:13:36 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-04-28 14:13:36 +0000 |
| commit | 3466681abbcf33b09fada54e74cf55915714e2b2 (patch) | |
| tree | bf2cebd6226b3b6a5f1db7656c521ef72de2cac7 /src/style-internal.cpp | |
| parent | changed default unit for hpgl importer to real world unit mm (diff) | |
| download | inkscape-3466681abbcf33b09fada54e74cf55915714e2b2.tar.gz inkscape-3466681abbcf33b09fada54e74cf55915714e2b2.zip | |
Clean up of style code: Add default to SPIString for use with 'font-family'.
(bzr r13315)
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 8 |
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) ) { |
