[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Sun Nov 6 21:25:32 PST 2011


 sc/source/core/data/document.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 41ccde126a45223212816271bdc761465c8dbee3
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Nov 7 06:23:49 2011 +0100

    SCTAB is sal_Int16 and not sal_Int32

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 588b2ed..78cd569 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -334,7 +334,7 @@ void ScDocument::CreateValidTabName(rtl::OUString& rName) const
         for ( SCTAB i = static_cast<SCTAB>(maTabs.size())+1; !bOk ; i++ )
         {
             rName  = aStrTable;
-            rName += rtl::OUString::valueOf(static_cast<SCTAB>(i));
+            rName += rtl::OUString::valueOf(static_cast<sal_Int32>(i));
             if (bPrefix)
                 bOk = ValidNewTabName( rName );
             else


More information about the Libreoffice-commits mailing list