summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-09-08 21:52:19 +0200
committerEike Rathke <erack@redhat.com>2022-09-09 18:43:44 +0200
commitd2c500fb40be23aa7bd1d2b7cc02e47ea109d25c (patch)
tree1b1e64c0260811248b66b09bfd237fad65afa988
parent5a1bd80e0d685bbd76de2ebfaa1c6b0380d528f4 (diff)
Related: tdf#150312 Assert a defined name's non-empty table:base-cell-address
Change-Id: Iaf377ae51c20e30e0362f5dc6f66172c544483d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139728 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index ca7ff1cca804..77a45ab9b284 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -4484,6 +4484,7 @@ void ScXMLExport::WriteNamedRange(ScRangeName* pRangeName)
rxEntry.second->ValidateTabRefs();
ScRangeStringConverter::GetStringFromAddress( sBaseCellAddress, rxEntry.second->GetPos(), pDoc,
FormulaGrammar::CONV_OOO, ' ', false, ScRefFlags::ADDR_ABS_3D);
+ assert(!sBaseCellAddress.isEmpty());
AddAttribute(XML_NAMESPACE_TABLE, XML_BASE_CELL_ADDRESS, sBaseCellAddress);
OUString sSymbol = rxEntry.second->GetSymbol(pDoc->GetStorageGrammar());