diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-03-01 17:50:18 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-03-02 16:52:26 +0100 |
commit | fbee19602e5f530f25b4d2fe01e73bf5946cfe4d (patch) | |
tree | ad18ff84346267adb9617c53e3968fb2276d2deb /vbahelper | |
parent | 64e9fdf54c512a6b12007db879525a3d11e76d02 (diff) |
Use sal_Int32 for the index as it comes in as a LONG at least from VBScript
Change-Id: If39054148f72211eae3c897675708aab58f425b2
Reviewed-on: https://gerrit.libreoffice.org/68593
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbacommandbars.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx index f8810e8ed359..b31ce704709d 100644 --- a/vbahelper/source/vbahelper/vbacommandbars.cxx +++ b/vbahelper/source/vbahelper/vbacommandbars.cxx @@ -208,7 +208,7 @@ ScVbaCommandBars::Item( const uno::Any& aIndex, const uno::Any& /*aIndex2*/ ) } // hardcode if "aIndex = 1" that would return "main menu". - sal_Int16 nIndex = 0; + sal_Int32 nIndex = 0; aIndex >>= nIndex; if( nIndex == 1 ) { |