framework/source/accelerators/acceleratorconfiguration.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 3abbb1486f09b377084c3232a921772302ab34ec Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Oct 17 16:59:04 2021 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Oct 18 20:52:27 2021 +0200 Fix nb of tokens in XCUBasedAcceleratorConfiguration::reloadChanged 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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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<nToken; ++i) { if ( nIndex < 0 )