sc/source/filter/excel/xepivot.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bc9714fefb2dd2ad55a92aaacb6b246f354ed2c0
Author: Tamás Zolnai <tamas.zol...@collabora.com>
Date:   Mon Sep 11 17:02:55 2017 +0200

    tdf#112328: Pivot table, XLS: Popup button for column fields is missing
    
    ...after round trip in Calc
    
    Wrong heading row was exported.
    
    Change-Id: I410eeeff7d7af408de1ea8128b6b21ac0cc76ea5
    Reviewed-on: https://gerrit.libreoffice.org/42175
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/sc/source/filter/excel/xepivot.cxx 
b/sc/source/filter/excel/xepivot.cxx
index 82f7db5646b4..00fe96fa8e37 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -1429,9 +1429,9 @@ void XclExpPivotTable::Finalize()
     maPTInfo.mnDataRows = rnXclRow2 - rnDataXclRow + 1;
 
     // first heading
-    maPTInfo.mnFirstHeadRow = rnXclRow1;
+    maPTInfo.mnFirstHeadRow = rnXclRow1 + 1;
     if (bExtraHeaderRow)
-        maPTInfo.mnFirstHeadRow += 2;
+        maPTInfo.mnFirstHeadRow += 1;
 }
 
 // records ----------------------------------------------------------------
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to