Add assert nCount <= vector.size() (Thank you Markus!)

Change-Id: I076e88e6fc845c2333bc3de98de023330e531272
This commit is contained in:
Julien Nabet 2013-04-01 21:29:34 +02:00
parent 25e5d697bc
commit 9b40d14eb9

View file

@ -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);