summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-26 23:26:46 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-02 03:25:50 +0200
commit879edb243ec69421088d7a45fcd0eb5a61aeb22f (patch)
treed18460c126160e931b0db23a291f733850ceafba
parent40bcd06d32112e713013d679b8ac43992ee36d12 (diff)
temporary ugly hack for ordering problem
Currently we have a problem with the ordering of the calls when we come to old cells that had inherited formats. They may not yet contain a number format when we get the number format. Change-Id: I0ddcdd10ff6ff0a43dbfecaf191e5903d3c0f9ce
-rw-r--r--sc/source/core/data/column3.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 59a51907be05..f36dbd0e7c43 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -1705,6 +1705,11 @@ void ScColumn::GetString( SCROW nRow, OUString& rString ) const
{
ScRefCellValue aCell;
aCell.assign(*maItems[nIndex].pCell);
+
+ // ugly hack for ordering problem with GetNumberFormat and missing inherited formats
+ if(aCell.meType == CELLTYPE_FORMULA)
+ aCell.mpFormula->MaybeInterpret();
+
sal_uLong nFormat = GetNumberFormat( nRow );
ScCellFormat::GetString(aCell, nFormat, rString, &pColor, *(pDocument->GetFormatTable()));
}