Add assert nCount <= vector.size() (Thank you Markus!)
Change-Id: I076e88e6fc845c2333bc3de98de023330e531272
This commit is contained in:
parent
25e5d697bc
commit
9b40d14eb9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue