aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIWrappingListContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUIWrappingListContainer.cpp')
-rw-r--r--guilib/GUIWrappingListContainer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/guilib/GUIWrappingListContainer.cpp b/guilib/GUIWrappingListContainer.cpp
index 80170ca5b6..87a2a5b375 100644
--- a/guilib/GUIWrappingListContainer.cpp
+++ b/guilib/GUIWrappingListContainer.cpp
@@ -141,10 +141,7 @@ void CGUIWrappingListContainer::ValidateOffset()
// add additional copies of items, as we require extras at render time
for (unsigned int i = 0; i < numItems; i++)
{
- if (m_items[i]->IsFileItem())
- m_items.push_back(CFileItemPtr(new CFileItem(*(CFileItem *)m_items[i].get())));
- else
- m_items.push_back(CGUIListItemPtr(new CGUIListItem(*m_items[i])));
+ m_items.push_back(CGUIListItemPtr(m_items[i]->Clone()));
m_extraItems++;
}
}