summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGList.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-10 20:33:17 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-10 20:33:17 +0000
commit6f6eb6ae3ea67198f7857cb8c2a5e2de336c8955 (patch)
tree53502fd8baf51febf293eeabc30f6ba0df53c69a /ksvg/impl/SVGList.h
parent56a45f537ac9d331fae756971b30f1d0eefb3a38 (diff)
downloadtdegraphics-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/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;
}