diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-24 01:18:59 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-24 01:20:21 +0100 |
commit | b1d0fd4f969976e2133f8eaa37c1fb8360c20f68 (patch) | |
tree | ea5c4ad27ffcdb1bf5e60e1723ea8ac4301181b9 /sc | |
parent | 0ab1b83271e8e0d1ee9fa2ade4bd1dda63c5f5f3 (diff) |
small improvement of the code
Change-Id: I2ac599fa2897dc4fe3256b50300cb467c647e320
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/formularesult.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/tool/formularesult.cxx b/sc/source/core/tool/formularesult.cxx index 9139c9a1c20c..9602c44d05f7 100644 --- a/sc/source/core/tool/formularesult.cxx +++ b/sc/source/core/tool/formularesult.cxx @@ -268,9 +268,8 @@ bool ScFormulaResult::IsEmptyDisplayedAsString() const bool ScFormulaResult::IsValue() const { formula::StackVar sv = GetCellResultType(); - if( sv == formula::svHybridValueCell ) - return true; - return sv == formula::svDouble || sv == formula::svError || sv == formula::svEmptyCell; + return sv == formula::svDouble || sv == formula::svError + || sv == formula::svEmptyCell || sv == formula::svHybridValueCell; } bool ScFormulaResult::IsMultiline() const @@ -335,7 +334,6 @@ double ScFormulaResult::GetDouble() const case formula::svHybridCell: case formula::svHybridValueCell: return mpToken->GetDouble(); - return mpToken->GetDouble(); case formula::svMatrixCell: { const ScMatrixCellResultToken* p = |