summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-28 11:55:23 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-04-29 00:33:18 +0000
commita226019bb5431ca04cae28fefb6b83e2bb738243 (patch)
tree7d3d248f93baf0d07a7ce7b0038765070fd8ebe1 /sc
parenteb492e0bcf5c05d3ee5b95f4cc7e598845b26db2 (diff)
fdo#75397: Return an empty string for empty element.
This is the behavior as of 3.6. It had changed in 4.0 and onward by accident, and caused the bug as reported in fdo#75397. (cherry picked from commit 5fab47ddbe332a150fb2005e941a2c19bd38ce7f) Change-Id: Id96fea354604b3c13cbbf2d9a73223b7725c7d66 Reviewed-on: https://gerrit.libreoffice.org/9188 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/scmatrix.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 933e80813275..66e43d82ccf0 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -677,7 +677,7 @@ OUString ScMatrixImpl::GetString( SvNumberFormatter& rFormatter, SCSIZE nC, SCSI
{
if (!maMatFlag.get<bool>(nR, nC))
// not an empty path.
- break;
+ return EMPTY_OUSTRING;
// result of empty FALSE jump path
sal_uLong nKey = rFormatter.GetStandardFormat( NUMBERFORMAT_LOGICAL,