summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorخالد حسني <khaled@aliftype.com>2023-02-26 18:14:29 +0000
committerخالد حسني <khaled@aliftype.com>2023-02-26 19:50:44 +0000
commit5a235634ca5761aa4b330ebf7e3a2083b7db1606 (patch)
tree96c3b465345d3fff4b779a960a8b943066458af8 /cui
parentbee4402c7ed97f3373f93eb7939940557bd59912 (diff)
Revert "Mark ssXX and cvXX off by default in font features dialog"
This reverts commit 3f9a8a3b7656470cfcf04c18a46a7b7bbeca8950. Reason for revert: Needs more work, currently causes all ssXX and cvXX to be added to font string when the dialog is used. Change-Id: I07eff710a2813e60fa4de3c23eb0a3c31d40e41d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147810 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/FontFeaturesDialog.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx
index 8bdbbc2bf6f4..d552fd5d7cea 100644
--- a/cui/source/dialogs/FontFeaturesDialog.cxx
+++ b/cui/source/dialogs/FontFeaturesDialog.cxx
@@ -158,15 +158,7 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea
else
{
if (nValue < 0)
- {
- // 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);
- }
+ 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());