This condition is apparently fatal
...as mnPoints is the size of mxPointAry (see also
323df76698
"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>
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user