diff options
author | Eike Rathke <erack@redhat.com> | 2017-10-02 16:13:34 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-10-02 16:23:39 +0200 |
commit | df778416981ab02d42182e5c2e46dc09ba2e2a3c (patch) | |
tree | 917dfef7375c469f87ab9b7c9ac80b019844d711 /sc | |
parent | e1f87cb067a058f34caaf61d86c79958eebfd0e4 (diff) |
Resolves: tdf#112780 no ResetDirty() after SetHybridEmptyDisplayedAsString()
Change-Id: Idea5c1bd8e8577eaf90fc47d39f88c79963c422b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 30acfd032115..ada61dea46a9 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1030,8 +1030,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(); } } } |