[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Mon Jun 6 21:26:28 PDT 2011


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

New commits:
commit abb135f661867e56ba672f7b4cc9da33fb5835be
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Jun 7 06:25:55 2011 +0200

    fix problem with uno and SCTAB

diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 161be07..d95e44d 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -547,7 +547,7 @@ void ScDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
                 for (SCTAB i = 0; i < rScHint.GetTab2(); ++i)
                 {
                     uno::Sequence< uno::Any > aArgs( 1 );
-                    aArgs[0] <<= rScHint.GetTab1() + i;
+                    aArgs[0] <<= static_cast<sal_Int16>(rScHint.GetTab1() + i);
                     xVbaEvents->processVbaEvent( WORKBOOK_NEWSHEET, aArgs );
                 }
             }


More information about the Libreoffice-commits mailing list