summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index 3a1a353286e5..aa064caef2ef 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -188,6 +188,7 @@ void SAL_CALL ExportDocumentHandler::startElement(const OUString & _sName, const
else if ( _sName == "chart:plot-area" )
{
comphelper::AttributeList* pList = dynamic_cast<comphelper::AttributeList*>(xAttribs.get());
+ assert(pList && "can only succeed");
pList->RemoveAttribute("table:cell-range-address");
}
else if ( _sName == "chart:categories" )