summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorLaurent Balland <laurent.balland@mailo.fr>2023-01-14 15:48:12 +0100
committerEike Rathke <erack@redhat.com>2023-02-03 17:57:01 +0000
commitbbd487dc26c7e37982f64f6e6159c65ac77a89f1 (patch)
tree4b4ebdd38543910807e13e6bbf14390ff87ac81b /cui
parentfb42b73d50eb3856a96c8c6f269e37d9da2181f2 (diff)
tdf#153023 Disable Thousand separator for NatNum12
Add some helper to get NatNum12 state Modify both Number format dialog and Sidebar Transform CAT_ defines in enum Change-Id: Iaa3127bf07223caac60e409306a1bee2edc37428 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145513 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/numfmt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index e6e669de6422..63f9d5ce91f7 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -942,7 +942,8 @@ void SvxNumberFormatTabPage::UpdateOptions_Impl( bool bCheckCatChange /*= sal_Fa
m_xBtnNegRed->set_active( bNegRed );
if ( nCategory != CAT_SCIENTIFIC )
{
- m_xBtnThousand->set_sensitive( nCategory != CAT_TIME );
+ m_xBtnThousand->set_sensitive( nCategory != CAT_TIME
+ && !pNumFmtShell->IsNatNum12( theFormat ) );
m_xBtnThousand->set_active( bThousand && nCategory != CAT_TIME );
}
break;