summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-04-01 21:29:34 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-04-01 21:29:34 +0200
commit9b40d14eb91573e62bdd8a6b9157f623a8c4cf7f (patch)
tree11e042b0179c7fd5a5181415cbb9a9f006ff944d /basegfx/source
parent25e5d697bca38e4ac8aa6a7a9030ffbf36682cac (diff)
Add assert nCount <= vector.size() (Thank you Markus!)
Change-Id: I076e88e6fc845c2333bc3de98de023330e531272
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx1
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);