officecfg/registry/schema/org/openoffice/Office/Common.xcs | 2 +- vcl/source/window/settings.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5b1f19daa1b0ffe5412fabfae80927fb4257e1c6 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Oct 17 19:21:37 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Oct 18 08:23:58 2022 +0200 xs:short->xs:int Change-Id: Ie725e9eb523097ee6a5e159e45c29e0f16a72fcf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141474 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs index 91d4c9351f8c..5c0ae14167c1 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs @@ -6188,7 +6188,7 @@ <info> <desc>Specifies settings for the accessibility options.</desc> </info> - <prop oor:name="HighContrast" oor:type="xs:short" oor:nillable="false"> + <prop oor:name="HighContrast" oor:type="xs:int" oor:nillable="false"> <!-- UIHints: Tools Options - Accessibility Options --> <info> <desc>Indicates whether High Contrast accessibility mode should be active.</desc> diff --git a/vcl/source/window/settings.cxx b/vcl/source/window/settings.cxx index cc0341aff24f..9edfaac2a546 100644 --- a/vcl/source/window/settings.cxx +++ b/vcl/source/window/settings.cxx @@ -227,7 +227,7 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl ) c aStyleSettings.SetHighContrastMode( true ); else { - short nHighContrastMode = officecfg::Office::Common::Accessibility::HighContrast::get(); + sal_Int32 nHighContrastMode = officecfg::Office::Common::Accessibility::HighContrast::get(); if (nHighContrastMode != 0) // 0 Automatic, 1 Disable, 2 Enable { const bool bEnable = nHighContrastMode == 2;