diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-11-03 19:02:46 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-11-03 19:59:20 +0000 |
| commit | 7308f9e1e734fc54661b3d79c4ff8e8fbeb84867 (patch) | |
| tree | 1c4287533b3727dcc74b6bd85de7f3834bedab7c /src/ui/dialog/font-substitution.cpp | |
| parent | make SP_ATTRIBUTE_IS_CSS a function (diff) | |
| download | inkscape-7308f9e1e734fc54661b3d79c4ff8e8fbeb84867.tar.gz inkscape-7308f9e1e734fc54661b3d79c4ff8e8fbeb84867.zip | |
refactor: Eliminate SPIString::value_default
- eliminate value_default
- make value private (-> _value)
- add value() method
Diffstat (limited to 'src/ui/dialog/font-substitution.cpp')
| -rw-r--r-- | src/ui/dialog/font-substitution.cpp | 10 |
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)) { |
