diff options
-rw-r--r-- | cui/source/dialogs/FontFeaturesDialog.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx index ab6063c9b6c3..f4f53f8c8655 100644 --- a/cui/source/dialogs/FontFeaturesDialog.cxx +++ b/cui/source/dialogs/FontFeaturesDialog.cxx @@ -158,7 +158,15 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea else { if (nValue < 0) - aCurrentItem.m_xCheck->set_state(TRISTATE_INDET); + { + // If feature is not set, we don’t know if it is enabled by + // default or not. But we know that stylistic sets and + // character variants are not enabled by default. + if (rFontFeature.isStylisticSet() || rFontFeature.isCharacterVariant()) + aCurrentItem.m_xCheck->set_state(TRISTATE_FALSE); + else + aCurrentItem.m_xCheck->set_state(TRISTATE_INDET); + } else aCurrentItem.m_xCheck->set_state(nValue > 0 ? TRISTATE_TRUE : TRISTATE_FALSE); aCurrentItem.m_xCheck->set_label(aDefinition.getDescription()); |