summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/appoptio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool/appoptio.cxx')
-rw-r--r--sc/source/core/tool/appoptio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index 5328f67a353f..3bdf429dfa67 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -180,11 +180,11 @@ static void lcl_SetSortList( const Any& rValue )
if (!bDefault)
{
aList.clear();
- aList.reserve(nCount);
for (long i=0; i<nCount; i++)
{
- aList.push_back( ScUserListData( pArray[i] ) );
+ ScUserListData* pNew = new ScUserListData( pArray[i] );
+ aList.push_back(pNew);
}
}