summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-06-07 01:00:31 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-06-07 01:00:31 -0400
commit0a90cbc4ca5c451c781fada0ae96e98ef59cf91a (patch)
treec5231d159f67994c4019495d07cb5cdf4af0f0e1 /sc/source/ui/vba
parent1de2ebb3aaa5cc73e79e10b40f979c1d4cf8b053 (diff)
The sheet index is a 16-bit integer. Use the same type to receive the value.
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbaeventshelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx
index 2d362545a54b..f332248c8db6 100644
--- a/sc/source/ui/vba/vbaeventshelper.cxx
+++ b/sc/source/ui/vba/vbaeventshelper.cxx
@@ -69,7 +69,7 @@ SCTAB lclGetTabFromArgs( const uno::Sequence< uno::Any >& rArgs, sal_Int32 nInde
VbaEventsHelperBase::checkArgument( rArgs, nIndex );
// first try to extract a sheet index
- sal_Int32 nTab = -1;
+ sal_Int16 nTab = -1;
if( rArgs[ nIndex ] >>= nTab )
{
if( (nTab < 0) || (nTab > MAXTAB) )