sc/source/filter/oox/condformatbuffer.cxx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
New commits: commit ceaa6002d1699e97cdf55449e20c8cfd0212f16a Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Mar 28 11:28:05 2023 -0400 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Apr 12 18:52:10 2023 +0200 sc: filter: oox: fix conditional color scale empty value \"\" Signed-off-by: Henry Castro <hcas...@collabora.com> Change-Id: I115c3731db85267d115efd24739470bffaeace40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149718 Tested-by: Andras Timar <andras.ti...@collabora.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index 8f289d383f94..01aa5a5e1c54 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -114,15 +114,18 @@ void SetCfvoData( ColorScaleRuleModelEntry* pEntry, const AttributeList& rAttrib OUString aType = rAttribs.getString( XML_type, OUString() ); OUString aVal = rAttribs.getString(XML_val, OUString()); - double nVal = 0.0; - bool bVal = isValue(aVal, nVal); - if( !bVal || aType == "formula" ) - { - pEntry->maFormula = aVal; - } - else + if (aVal != "\"\"") { - pEntry->mnVal = nVal; + double nVal = 0.0; + bool bVal = isValue(aVal, nVal); + if( !bVal || aType == "formula" ) + { + pEntry->maFormula = aVal; + } + else + { + pEntry->mnVal = nVal; + } } if (aType == "num")