diff options
author | Henry Castro <hcastro@collabora.com> | 2023-03-28 11:28:05 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-06-16 16:10:40 +0200 |
commit | 60086685c91dd5d356b492b34dac613a06639b3c (patch) | |
tree | 628170a3f5aad59a6b8539246e9a5a4b6aad5edb | |
parent | 42e156fd19659bead5eebd78c7bd6fd3d38901ad (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153178
Tested-by: Jenkins
-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 80891c2e9abf..4ce1ca7fc257 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") |