summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-04-21 21:42:32 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2017-04-25 19:33:13 -0400
commit26f1ab7e4d8407834cb1d5c1339ac29552ba220d (patch)
tree6bf938d99f503179049f340c414bb63f6f8cf1d3 /sc
parent57f248ec1b39235a372d6e031d77301f265d70ba (diff)
tdf#107310: hybrid cell is a value cell as well as a string cell.
Else it would cause a legitimate calculation to fail with #VALUE!. Reviewed-on: https://gerrit.libreoffice.org/36817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> (cherry picked from commit 7c80ea40fab3cb8e8893d14e80e7bb7f63f0dbb0) Reviewed-on: https://gerrit.libreoffice.org/36917 Reviewed-by: Eike Rathke <erack@redhat.com> Change-Id: If8d4f40859d0c87b97afc952e4a3e4268450c40c
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/formularesult.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/tool/formularesult.cxx b/sc/source/core/tool/formularesult.cxx
index 95b8ded0cca5..90becca556dc 100644
--- a/sc/source/core/tool/formularesult.cxx
+++ b/sc/source/core/tool/formularesult.cxx
@@ -294,6 +294,9 @@ inline bool isString( formula::StackVar sv )
bool ScFormulaResult::IsValue() const
{
+ if (IsEmptyDisplayedAsString())
+ return true;
+
return isValue(GetCellResultType());
}