[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Jun 6 22:01:25 PDT 2011


 sc/source/ui/vba/vbaeventshelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fbdd22f069f0e9149e66dffa16fcd2663b9e5286
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Tue Jun 7 01:00:31 2011 -0400

    The sheet index is a 16-bit integer.  Use the same type to receive the value.

diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx
index 2d36254..f332248 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) )


More information about the Libreoffice-commits mailing list