summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-11-03 19:02:46 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-11-03 19:59:20 +0000
commit7308f9e1e734fc54661b3d79c4ff8e8fbeb84867 (patch)
tree1c4287533b3727dcc74b6bd85de7f3834bedab7c /src/ui/widget
parentmake SP_ATTRIBUTE_IS_CSS a function (diff)
downloadinkscape-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/widget')
-rw-r--r--src/ui/widget/font-variants.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp
index 28ba7dc14..10874318b 100644
--- a/src/ui/widget/font-variants.cpp
+++ b/src/ui/widget/font-variants.cpp
@@ -716,10 +716,11 @@ namespace Widget {
std::string setting;
// Set feature radiobutton (if it exists) or add to _feature_entry string.
- if (query->font_feature_settings.value) {
+ char const *val = query->font_feature_settings.value();
+ if (val) {
std::vector<Glib::ustring> tokens =
- Glib::Regex::split_simple("\\s*,\\s*", query->font_feature_settings.value);
+ Glib::Regex::split_simple("\\s*,\\s*", val);
for (auto token: tokens) {
regex->match(token, matchInfo);