--- branches/KDE/4.2/kdelibs/khtml/svg/SVGList.h 2009/01/06 17:13:38 906699
+++ branches/KDE/4.2/kdelibs/khtml/svg/SVGList.h 2009/06/17 21:56:00 983302
@@ -97,7 +97,11 @@
Item insertItemBefore(Item newItem, unsigned int index, ExceptionCode&)
{
- m_vector.insert(index, newItem);
+ if (index < m_vector.size()) {
+ m_vector.insert(index, newItem);
+ } else {
+ m_vector.append(newItem);
+ }
return newItem;
}