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

New commits:
commit dc505d3a5cdebe6271fcd6dae7b4d69e7c1af13e
Author: Kohei Yoshida <kohei.yosh...@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;
             }
         }
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to