From 3abbb1486f09b377084c3232a921772302ab34ec Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 17 Oct 2021 16:59:04 +0200 Subject: Fix nb of tokens in XCUBasedAcceleratorConfiguration::reloadChanged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and use 4 like XCUBasedAcceleratorConfiguration::impl_ts_load Indeed, there can be: - SHIFT - MOD1 - MOD2 - MOD3 Change-Id: I1e206a6cb74761165b60887e768fa9b057c4b242 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123722 Tested-by: Jenkins Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- framework/source/accelerators/acceleratorconfiguration.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index 877b4a9f6843..efa200556fda 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -1224,8 +1224,8 @@ void XCUBasedAcceleratorConfiguration::reloadChanged( const OUString& sPrimarySe sKeyIdentifier = sKey.getToken(0, '_', nIndex); aKeyEvent.KeyCode = KeyMapping::get().mapIdentifierToCode("KEY_"+sKeyIdentifier); - css::uno::Sequence< OUString > sToken(3); - const sal_Int32 nToken = 3; + css::uno::Sequence< OUString > sToken(4); + const sal_Int32 nToken = 4; for (sal_Int32 i=0; i