diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-29 00:04:58 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-11-29 03:30:46 +0100 |
commit | fb04e7180cdf656dbbd3daa9c81615d9478229e0 (patch) | |
tree | 64b6d7a4ecc38f4b4c5daf8183501866fbcfcb23 /sc | |
parent | 6481bda69ade61cb5420156272fcf17edd43d620 (diff) |
tdf#105236, only take number format from numeric cells
Change-Id: I55deaa1f0579582a45dc1e10bb578b680eb98647
Reviewed-on: https://gerrit.libreoffice.org/64200
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 448652397cee..5fc78815f602 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3145,7 +3145,7 @@ sal_uInt32 getDisplayNumberFormat(const ScDocument* pDoc, const ScAddress& rPos) for (const Item& rItem : m_aDataArray) { ScRefCellValue aCell(*m_pDocument, rItem.mAddress); - if (!aCell.isEmpty()) + if (!aCell.isEmpty() && aCell.hasNumeric()) { return static_cast<sal_Int32>(getDisplayNumberFormat(m_pDocument, rItem.mAddress)); } |