From 5a235634ca5761aa4b330ebf7e3a2083b7db1606 Mon Sep 17 00:00:00 2001 From: خالد حسني Date: Sun, 26 Feb 2023 18:14:29 +0000 Subject: Revert "Mark ssXX and cvXX off by default in font features dialog" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: خالد حسني --- cui/source/dialogs/FontFeaturesDialog.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cui') 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 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()); -- cgit