summaryrefslogtreecommitdiffstats
path: root/src/file-update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-update.cpp')
-rw-r--r--src/file-update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file-update.cpp b/src/file-update.cpp
index 4fae51cf0..a49ddaa99 100644
--- a/src/file-update.cpp
+++ b/src/file-update.cpp
@@ -141,7 +141,7 @@ void fix_font_name(SPObject *o)
std::vector<SPObject *> cl = o->childList(false);
for (std::vector<SPObject *>::const_iterator ci = cl.begin(); ci != cl.end(); ++ci)
fix_font_name(*ci);
- std::string prev = o->style->font_family.value ? o->style->font_family.value : o->style->font_family.value_default;
+ std::string prev = o->style->font_family.value();
if (prev == "Sans")
o->style->font_family.read("sans-serif");
else if (prev == "Serif")