diff options
author | Eike Rathke <erack@redhat.com> | 2015-09-21 18:30:24 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-09-21 19:43:18 +0200 |
commit | da4c217ac49ff05e352c0e6e46a46a4e9a0b78cc (patch) | |
tree | cfa2794605b64cd0d4db4922d0e5252b4bc87545 /sc | |
parent | fc64a5d850081a89acd44d4f7c72db3b21279360 (diff) |
init iterators only when needed
Almost only cosmetic here because the fields should be available, just
weren't in one case..
Change-Id: Ied68a91c8ef2cd32e293bf1d892eee3bee932ebf
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xipivot.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xipivot.cxx b/sc/source/filter/excel/xipivot.cxx index 224c4d04b85b..253918428c97 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 |