diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-06-22 18:19:57 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-06-22 18:21:00 -0700 |
commit | d3c77f63b4823f7a4d68043de50a62dfd5ed5e1f (patch) | |
tree | 1eadae6601ab3a27cef30fa2c6e8eb670fd2025f /svx/source/xoutdev/xtablend.cxx | |
parent | 4ffe2461c158226fc587f8b741c1ff8f2adbbb8d (diff) |
Replace List with std::vector< Bitmap* >
Diffstat (limited to 'svx/source/xoutdev/xtablend.cxx')
-rw-r--r-- | svx/source/xoutdev/xtablend.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/xoutdev/xtablend.cxx b/svx/source/xoutdev/xtablend.cxx index 31f2a60ac01a..cfffda9b82cd 100644 --- a/svx/source/xoutdev/xtablend.cxx +++ b/svx/source/xoutdev/xtablend.cxx @@ -250,12 +250,12 @@ void XLineEndList::impDestroy() XLineEndList::XLineEndList( const String& rPath, XOutdevItemPool* _pXPool, - sal_uInt16 nInitSize, - sal_uInt16 nReSize + sal_uInt16 /* nInitSize */, + sal_uInt16 /* nReSize */ ) : XPropertyList( rPath, _pXPool ), mpData(0) { - pBmpList = new List(nInitSize, nReSize); + pBmpList = new BitmapList_impl(); } XLineEndList::~XLineEndList() @@ -355,7 +355,13 @@ sal_Bool XLineEndList::CreateBitmapsForUI() OSL_ENSURE(0 != pBmp, "XLineEndList: Bitmap(UI) could not be created!" ); if( pBmp ) - pBmpList->Insert( pBmp, i ); + { + if ( (size_t)i < pBmpList->size() ) { + pBmpList->insert( pBmpList->begin() + i, pBmp ); + } else { + pBmpList->push_back( pBmp ); + } + } } impDestroy(); |