summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-03-01 17:50:18 +0200
committerTor Lillqvist <tml@collabora.com>2019-03-02 17:56:47 +0200
commit97b90ad9cf4fbcef9c225928d38a367152a7d3b6 (patch)
tree20ec2995d5c94ec2fa0e3b9aeab3bace4f5c98ee /vbahelper
parent87b4bd61792b28fe475c71d4484cd219c1e533ae (diff)
Use sal_Int32 for the index as it comes in as a LONG at least from VBScript
An Any containing a LONG with value 1 won't be put into a sal_Int16 by the >>= operator, even if it obviously would fit... But maybe consistency is good here. Change-Id: If39054148f72211eae3c897675708aab58f425b2
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbars.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx
index dfd0f2fa565e..d0afb059c479 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 )
{