diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-03 22:54:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-06-02 03:24:56 +0200 |
commit | 267f7a630b33f02a8dfda55945ee10b2c5f615f9 (patch) | |
tree | 84ac0190572da721ef74c5d8a9eb4033775fe79e /sc/source/ui/view/output2.cxx | |
parent | ddade7a4751b9b7f6459f48ffdf3dedf31d151f3 (diff) |
preparations for inherited number format removal
Without inherited number format these calls are unnecessary.
Change-Id: I359cb217eb32d98df29bb6d2c0fbb14367e30425
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 33432fa796a2..1f93b5e712f7 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -596,15 +596,6 @@ void ScDrawStringsVars::SetTextToWidthOrHash( ScRefCellValue& rCell, long nWidth // If it's formula, the result must be a value. if (!pFCell->IsValue()) return; - - if (pFCell->GetFormatType() != NUMBERFORMAT_NUMBER) - { - // Make sure the format type implicitly set by the interpreter is - // of pure numeric type. We don't want to adjust date and time - // values here. - SetHashText(); - return; - } } sal_uLong nFormat = GetResultValueFormat(rCell); @@ -798,10 +789,7 @@ sal_uLong ScDrawStringsVars::GetResultValueFormat( const ScRefCellValue& rCell ) // Get the effective number format, including formula result types. // This assumes that a formula cell has already been calculated. - if ((nValueFormat % SV_COUNTRY_LANGUAGE_OFFSET) == 0 && rCell.meType == CELLTYPE_FORMULA) - return rCell.mpFormula->GetStandardFormat(*pOutput->mpDoc->GetFormatTable(), nValueFormat); - else - return nValueFormat; + return nValueFormat; } //================================================================== |