summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-04-24 12:04:31 +0000
committertavmjong-free <tavmjong@free.fr>2014-04-24 12:04:31 +0000
commit67c3fc5586ae05506f75bb30fe46a071e20613d2 (patch)
tree8469b6ad6668ba9852930950833db245eb70da00 /src/ui
parentAdd missing style-internal.cpp (diff)
downloadinkscape-67c3fc5586ae05506f75bb30fe46a071e20613d2.tar.gz
inkscape-67c3fc5586ae05506f75bb30fe46a071e20613d2.zip
Clean up of style code, removal of SPFontStyle. Step 2.
(bzr r13300)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/font-substitution.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/dialog/font-substitution.cpp b/src/ui/dialog/font-substitution.cpp
index bf9133086..6e9ecc3c8 100644
--- a/src/ui/dialog/font-substitution.cpp
+++ b/src/ui/dialog/font-substitution.cpp
@@ -200,16 +200,16 @@ GSList * FontSubstitution::getFontReplacedItems(SPDocument* doc, Glib::ustring *
}
}
- if (style && style->text) {
+ if (style) {
gchar const *style_font = NULL;
- if (style->text->font_family.set)
- style_font = style->text->font_family.value;
- else if (style->text->font_specification.set)
- style_font = style->text->font_specification.value;
- else if (style->text->font_family.value)
- style_font = style->text->font_family.value;
- else if (style->text->font_specification.value)
- style_font = style->text->font_specification.value;
+ if (style->font_family.set)
+ style_font = style->font_family.value;
+ else if (style->font_specification.set)
+ style_font = style->font_specification.value;
+ else if (style->font_family.value)
+ style_font = style->font_family.value;
+ else if (style->font_specification.value)
+ style_font = style->font_specification.value;
if (style_font) {
if (has_visible_text(item)) {