Kaydet (Commit) 5908f1ea authored tarafından Markus Mohrhard's avatar Markus Mohrhard

tdf#105236, only take number format from numeric cells

Change-Id: I55deaa1f0579582a45dc1e10bb578b680eb98647
Reviewed-on: https://gerrit.libreoffice.org/64200
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit fb04e718)
Reviewed-on: https://gerrit.libreoffice.org/64203
üst 19ed06f3
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment