oox/source/export/chartexport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit a8b92c23ea61bfe7ee6bad36f2e83534d7179833 Author: Justin Luth <[email protected]> AuthorDate: Fri Mar 6 10:40:57 2026 -0500 Commit: Justin Luth <[email protected]> CommitDate: Fri Mar 6 19:26:18 2026 +0100 tdf#143269 fix build (partial revert) xBCooSysCnt is only used in the assert, so non-debug builds would have an unused variable error. So just keep the early return that was there previously. Change-Id: Id716568c5748f43615c98882be8d0b8179889273 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201138 Tested-by: Jenkins Reviewed-by: Justin Luth <[email protected]> (cherry picked from commit 6e77760cdefd7574d218e6c2a4deb30373f4a531) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201150 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index a0fa933928ca..af763eda0dd5 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2539,6 +2539,8 @@ void ChartExport::exportPlotArea(const Reference< css::chart::XChartDocument >& Reference< chart2::XCoordinateSystemContainer > xBCooSysCnt( mxNewDiagram, uno::UNO_QUERY ); // MS Word considers a chart corrupt if it doesn't have a c:plotArea assert(xBCooSysCnt.is()); + if (!xBCooSysCnt.is()) + return; // plot-area element
