summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/font-substitution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/font-substitution.cpp')
-rw-r--r--src/ui/dialog/font-substitution.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ui/dialog/font-substitution.cpp b/src/ui/dialog/font-substitution.cpp
index bf371588a..5616b4bfa 100644
--- a/src/ui/dialog/font-substitution.cpp
+++ b/src/ui/dialog/font-substitution.cpp
@@ -175,13 +175,11 @@ std::vector<SPItem*> FontSubstitution::getFontReplacedItems(SPDocument* doc, Gli
if (style) {
gchar const *style_font = nullptr;
if (style->font_family.set)
- style_font = style->font_family.value;
+ 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;
+ style_font = style->font_specification.value();
+ else
+ style_font = style->font_family.value();
if (style_font) {
if (has_visible_text(item)) {