Kaydet (Commit) 16252e44 authored tarafından Eike Rathke's avatar Eike Rathke

dr78: #i116691# don't reduce decimals if formula is shown

# HG changeset patch
# User Niklas Nebel <nn@openoffice.org>
# Date 1297087576 -3600
# Node ID 37cf78c63d8ec7609c254e58316902d5bdb48618
# Parent  4e7aa2262f3ae26e6082f475ef06bbabf39b3e93
üst 0c428b05
......@@ -551,9 +551,9 @@ void ScDrawStringsVars::SetTextToWidthOrHash( ScBaseCell* pCell, long nWidth )
if (eType == CELLTYPE_FORMULA)
{
ScFormulaCell* pFCell = static_cast<ScFormulaCell*>(pCell);
if (pFCell->GetErrCode() != 0)
if (pFCell->GetErrCode() != 0 || pOutput->bShowFormulas)
{
SetHashText(); // If the error string doesn't fit, always use "###"
SetHashText(); // If the error string doesn't fit, always use "###". Also for "display formulas" (#i116691#)
return;
}
// If it's formula, the result must be a value.
......
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