tools/source/generic/poly.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4e7f7a799e3973b8417f318bd4c0ce28ca48e87f
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sat May 7 15:58:22 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sat May 7 17:23:53 2022 +0200

    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 <sberg...@redhat.com>

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];
 }

Reply via email to