Kaydet (Commit) 6349540d authored tarafından Thomas Arnhold's avatar Thomas Arnhold

really fix it

arg. sorry...

Change-Id: I57836c574f4f622296c38d7a0adb6adcbb768aa2
üst 618ade76
...@@ -1039,6 +1039,27 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab ) ...@@ -1039,6 +1039,27 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
aStrTD.append(lcl_makeHTMLColorTriplet(aBgColor)); aStrTD.append(lcl_makeHTMLColorTriplet(aBgColor));
} }
double fVal = 0.0;
if ( bValueData )
{
switch (aCell.meType)
{
case CELLTYPE_VALUE:
fVal = aCell.mfValue;
if ( bCalcAsShown && fVal != 0.0 )
fVal = pDoc->RoundValueAsShown( fVal, nFormat );
break;
case CELLTYPE_FORMULA:
fVal = aCell.mpFormula->GetValue();
break;
default:
OSL_FAIL( "value data with unsupported cell type" );
}
}
aStrTD.append(HTMLOutFuncs::CreateTableDataOptionsValNum(bValueData, fVal,
nFormat, *pFormatter, eDestEnc, &aNonConvertibleChars));
TAG_ON(aStrTD.makeStringAndClear().getStr()); TAG_ON(aStrTD.makeStringAndClear().getStr());
if ( bBold ) TAG_ON( OOO_STRING_SVTOOLS_HTML_bold ); if ( bBold ) TAG_ON( OOO_STRING_SVTOOLS_HTML_bold );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment