diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-07 15:58:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-07 17:23:53 +0200 |
commit | 4e7f7a799e3973b8417f318bd4c0ce28ca48e87f (patch) | |
tree | 9df4d3ab4ec8a9a4c794b061b1450f6d512d9e9e /tools/source/generic | |
parent | ea2386b7ca141d0390b5f0c5ca7553aec62e316e (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'tools/source/generic')
-rw-r--r-- | tools/source/generic/poly.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <memory> #include <vector> #include <algorithm> +#include <cassert> #include <cstring> #include <limits.h> #include <cmath> @@ -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]; } |