From 67c3fc5586ae05506f75bb30fe46a071e20613d2 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 24 Apr 2014 14:04:31 +0200 Subject: Clean up of style code, removal of SPFontStyle. Step 2. (bzr r13300) --- src/style-internal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/style-internal.cpp') diff --git a/src/style-internal.cpp b/src/style-internal.cpp index ede543078..b03e848ba 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -1887,7 +1887,7 @@ SPIFont::read( gchar const *str ) { std::string str_s = str; // Why this extra step? std::string family = str_s.substr( str_s.find( param ) ); - style->text->font_family.readIfUnset( family.c_str() ); + style->font_family.readIfUnset( family.c_str() ); // Everything in shorthand is set per CSS rules, this works since // properties are read backwards from end to start. @@ -1897,7 +1897,7 @@ SPIFont::read( gchar const *str ) { style->font_stretch.set = true; style->font_size.set = true; style->line_height.set = true; - style->text->font_family.set = true; + style->font_family.set = true; // style->font_size_adjust.set = true; // style->font_kerning.set = true; // style->font_language_override.set = true;; -- cgit v1.2.3