diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-10 20:33:17 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-10 20:33:17 +0000 |
commit | 6f6eb6ae3ea67198f7857cb8c2a5e2de336c8955 (patch) | |
tree | 53502fd8baf51febf293eeabc30f6ba0df53c69a /ksvg | |
parent | 56a45f537ac9d331fae756971b30f1d0eefb3a38 (diff) | |
download | tdegraphics-6f6eb6ae3ea67198f7857cb8c2a5e2de336c8955.tar.gz tdegraphics-6f6eb6ae3ea67198f7857cb8c2a5e2de336c8955.zip |
Repaired handling of SVG item insert
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1072744 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg')
-rw-r--r-- | ksvg/impl/SVGList.h | 6 |
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; } |