oox/source/export/chartexport.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 6e77760cdefd7574d218e6c2a4deb30373f4a531 Author: Justin Luth <[email protected]> AuthorDate: Fri Mar 6 10:40:57 2026 -0500 Commit: Justin Luth <[email protected]> CommitDate: Fri Mar 6 18:48:16 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]> diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index ebee424e452a..07256b213437 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2533,6 +2533,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
