summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGList.h
diff options
context:
space:
mode:
Diffstat (limited to 'ksvg/impl/SVGList.h')
-rw-r--r--ksvg/impl/SVGList.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/ksvg/impl/SVGList.h b/ksvg/impl/SVGList.h
index 45eb81ba..dfa07dd0 100644
--- a/ksvg/impl/SVGList.h
+++ b/ksvg/impl/SVGList.h
@@ -94,11 +94,7 @@ public:
T *insertItemBefore(T *newItem, unsigned int index)
{
- if (index < m_vector.size()) {
- m_vector.insert(index, newItem);
- } else {
- m_vector.append(newItem);
- }
+ m_impl.insert(index, newItem);
return newItem;
}