diff options
-rw-r--r-- | basegfx/source/polygon/b3dpolygon.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 70a5aeb357df..5a07ab2b6d0c 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -278,6 +278,7 @@ public: BColorDataVector::const_iterator aStart(rOriginal.maVector.begin()); aStart += nIndex; BColorDataVector::const_iterator aEnd(aStart); + assert(nCount <= rOriginal.maVector.size()); aEnd += nCount; maVector.reserve(nCount); |