From 6f6eb6ae3ea67198f7857cb8c2a5e2de336c8955 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 10 Jan 2010 20:33:17 +0000 Subject: Repaired handling of SVG item insert git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1072744 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksvg/impl/SVGList.h | 6 +----- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3