summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-28 11:55:23 -0400
committerAndras Timar <andras.timar@collabora.com>2014-05-26 03:01:34 -0700
commit8dec013c56b1204dea3ccfe537ac71b3a056e46c (patch)
tree27e237a81934e1ca8af978e48e5b42e3be4e30d1
parent417d730e1a890e2349bf99778b48dd46e0ac5ef5 (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>
-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 eea3a71db53e..4b382a05c0fe 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,