summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-09-12 11:44:47 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-09-12 11:44:47 +0000
commit4c5a037658bfac000c1a380ed69947a77de2229f (patch)
tree089d649a85956f477510cd1a1f247e28300be70a /src/ui/widget
parentFix crash when overflowing flowed text (diff)
downloadinkscape-4c5a037658bfac000c1a380ed69947a77de2229f.tar.gz
inkscape-4c5a037658bfac000c1a380ed69947a77de2229f.zip
Fix unsetting variable font values giving wrong font name (Issue 842).
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/font-selector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp
index 0b096995c..d8897eb3a 100644
--- a/src/ui/widget/font-selector.cpp
+++ b/src/ui/widget/font-selector.cpp
@@ -254,7 +254,8 @@ FontSelector::get_fontspec(bool use_variations) {
if (use_variations) {
// Clip any font_variation data in 'style' as we'll replace it.
- if (auto pos = style.find('@') != Glib::ustring::npos) {
+ auto pos = style.find('@');
+ if (pos != Glib::ustring::npos) {
style.erase (pos, style.length()-1);
}