[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Mon Sep 21 10:44:14 PDT 2015
sc/source/filter/excel/xipivot.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit da4c217ac49ff05e352c0e6e46a46a4e9a0b78cc
Author: Eike Rathke <erack at redhat.com>
Date: Mon Sep 21 18:30:24 2015 +0200
init iterators only when needed
Almost only cosmetic here because the fields should be available, just
weren't in one case..
Change-Id: Ied68a91c8ef2cd32e293bf1d892eee3bee932ebf
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx
index 224c4d0..2539184 100644
--- a/sc/source/filter/excel/xipivot.cxx
+++ b/sc/source/filter/excel/xipivot.cxx
@@ -1029,8 +1029,6 @@ void XclImpPTField::ConvertDataField( ScDPSaveData& rSaveData ) const
if (aFieldName.isEmpty())
return;
- XclPTDataFieldInfoList::const_iterator aIt = maDataInfoList.begin(), aEnd = maDataInfoList.end();
-
ScDPSaveDimension* pSaveDim = rSaveData.GetNewDimensionByName(aFieldName);
if (!pSaveDim)
{
@@ -1038,6 +1036,8 @@ void XclImpPTField::ConvertDataField( ScDPSaveData& rSaveData ) const
return;
}
+ XclPTDataFieldInfoList::const_iterator aIt = maDataInfoList.begin(), aEnd = maDataInfoList.end();
+
ConvertDataField( *pSaveDim, *aIt );
// multiple data fields -> clone dimension
More information about the Libreoffice-commits
mailing list