summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-02 16:13:34 +0200
committerAndras Timar <andras.timar@collabora.com>2017-10-18 11:59:55 +0200
commita8cfb28a30de33e7850d23c7dea59a08038cbfc9 (patch)
tree3c04af2ac1526d018da2d560c09ab82f14410e23 /sc
parent98e811528fa2ed87e0b1e2d8bf1fd66ac222702d (diff)
Resolves: tdf#112780 no ResetDirty() after SetHybridEmptyDisplayedAsString()
Change-Id: Idea5c1bd8e8577eaf90fc47d39f88c79963c422b (cherry picked from commit df778416981ab02d42182e5c2e46dc09ba2e2a3c) Reviewed-on: https://gerrit.libreoffice.org/43048 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 8d9b236dcb3fd0f7028e4d19ede04589cf85d760)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 3f894d112a3b..9724b46bf6cc 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1012,8 +1012,13 @@ void ScXMLTableRowCellContext::SetFormulaCell(ScFormulaCell* pFCell) const
{
pFCell->SetHybridDouble(fValue);
if (mbPossibleEmptyDisplay && fValue == 0.0)
+ {
+ // Needs to be recalculated to propagate, otherwise would be
+ // propagated as empty string. So don't ResetDirty().
pFCell->SetHybridEmptyDisplayedAsString();
- pFCell->ResetDirty();
+ }
+ else
+ pFCell->ResetDirty();
}
}
}