Mark ssXX and cvXX off by default in font features dialog
We know they are off by default.
Change-Id: I77c8ecb0d65d46ec77ccc2570ecf5c05e6e577e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143660
Tested-by: Jenkins
Reviewed-by: خالد حسني <[email protected]>
diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx
index ab6063c..f4f53f8 100644
--- a/cui/source/dialogs/FontFeaturesDialog.cxx
+++ b/cui/source/dialogs/FontFeaturesDialog.cxx
@@ -158,7 +158,15 @@
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());