From 4e7f7a799e3973b8417f318bd4c0ce28ca48e87f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 7 May 2022 15:58:22 +0200 Subject: This condition is apparently fatal ...as mnPoints is the size of mxPointAry (see also 323df76698be1e554ba3342f56a812517a25437a "Revert 'tdf#147919 PPTX export: fix curved and bent connector shape'") Change-Id: I10b9c6bd25bc88754d2d52e851c3871621b0d517 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133980 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- tools/source/generic/poly.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/source') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index b0ec428d49f7..166803b38f04 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -1578,7 +1579,7 @@ void Polygon::Insert( sal_uInt16 nPos, const tools::Polygon& rPoly ) Point& Polygon::operator[]( sal_uInt16 nPos ) { - DBG_ASSERT( nPos < mpImplPolygon->mnPoints, "Polygon::[]: nPos >= nPoints" ); + assert( nPos < mpImplPolygon->mnPoints ); return mpImplPolygon->mxPointAry[nPos]; } -- cgit