[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Feb 28 08:51:36 PST 2012


 sc/source/core/data/dptablecache.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit dc505d3a5cdebe6271fcd6dae7b4d69e7c1af13e
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Feb 28 11:49:35 2012 -0500

    bnc#520828: Correctly import fields with same name in excel's pivot tables.
    
    We just need to append '2' on the 2nd field with identical name, not '1'.
    This alone fixes the import problem.

diff --git a/sc/source/core/data/dptablecache.cxx b/sc/source/core/data/dptablecache.cxx
index cc60e6f..69f1bfa 100644
--- a/sc/source/core/data/dptablecache.cxx
+++ b/sc/source/core/data/dptablecache.cxx
@@ -654,8 +654,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData)
             if (maLabelNames[i].maString.equals(strNewName))
             {
                 strNewName = pData->maString;
-                strNewName += String::CreateFromInt32( nIndex );
-                ++nIndex;
+                strNewName += String::CreateFromInt32( ++nIndex );
                 bFound = true;
             }
         }


More information about the Libreoffice-commits mailing list