diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-09-12 11:44:47 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-09-12 11:44:47 +0000 |
| commit | 4c5a037658bfac000c1a380ed69947a77de2229f (patch) | |
| tree | 089d649a85956f477510cd1a1f247e28300be70a /src/ui/widget | |
| parent | Fix crash when overflowing flowed text (diff) | |
| download | inkscape-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.cpp | 3 |
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); } |
