diff options
author | Henry Castro <hcastro@collabora.com> | 2023-03-28 11:28:05 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-05-19 13:12:48 +0200 |
commit | 779f8ec53a6395e7b97b93978d0f196b1f332f89 (patch) | |
tree | 333bd5349a0ea8ebed6e6f648a0396d605967e79 /sc | |
parent | b9dc126723594f1de7f4479233340d3f00f1f173 (diff) |
sc: filter: oox: fix conditional color scale empty value \"\"
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I115c3731db85267d115efd24739470bffaeace40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149718
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151976
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index c1b7b6d84c9d..fede0d344182 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -116,15 +116,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") |