diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-24 10:44:48 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-24 17:16:56 -0400 |
commit | f5abc665e94113a53d450af020bc534756a88072 (patch) | |
tree | 229cb1e75920907b30fb91da5744403ccd413b0e /sc/source/filter/xml/XMLExportIterator.cxx | |
parent | dcd8964ca3f05a40b18cf17ab11116011c090abc (diff) |
Remove ugly and expensive hack only to see if the cell is an edit cell.
We can do it much simpler now.
Change-Id: I913f2a226e1f16fbc9aafaa91af5550f3c7fee05
Diffstat (limited to 'sc/source/filter/xml/XMLExportIterator.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLExportIterator.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/filter/xml/XMLExportIterator.cxx b/sc/source/filter/xml/XMLExportIterator.cxx index 697f2aa9dcc3..2cf43250d084 100644 --- a/sc/source/filter/xml/XMLExportIterator.cxx +++ b/sc/source/filter/xml/XMLExportIterator.cxx @@ -608,7 +608,6 @@ ScMyCell::ScMyCell() : bHasDetectiveObj( false ), bHasDetectiveOp( false ), bIsEditCell( false ), - bKnowWhetherIsEditCell( false ), bHasStringValue( false ), bHasDoubleValue( false ), bHasXText( false ), @@ -682,14 +681,18 @@ void ScMyNotEmptyCellsIterator::UpdateAddress( table::CellAddress& rAddress ) void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& rMyCell, table::CellAddress& rAddress ) { + rMyCell.maBaseCell.clear(); rMyCell.aCellAddress = rAddress; rMyCell.bHasStringValue = false; rMyCell.bHasDoubleValue = false; rMyCell.bHasXText = false; - rMyCell.bKnowWhetherIsEditCell = false; rMyCell.bIsEditCell = false; if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) ) + { mpCell = mpCellItr->GetNext(nCellCol, nCellRow); + if (mpCell) + rMyCell.maBaseCell = *mpCell; + } } void ScMyNotEmptyCellsIterator::SetMatrixCellData( ScMyCell& rMyCell ) |