diff options
Diffstat (limited to 'svx/source/xoutdev/xtabdash.cxx')
-rw-r--r-- | svx/source/xoutdev/xtabdash.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx index f6d76b62062b..f5ce99d55242 100644 --- a/svx/source/xoutdev/xtabdash.cxx +++ b/svx/source/xoutdev/xtabdash.cxx @@ -243,12 +243,12 @@ void XDashList::impDestroy() XDashList::XDashList( const String& rPath, XOutdevItemPool* pInPool, - sal_uInt16 nInitSize, - sal_uInt16 nReSize + sal_uInt16 /* nInitSize */, + sal_uInt16 /* nReSize */ ) : XPropertyList( rPath, pInPool ), mpData(0) { - pBmpList = new List(nInitSize, nReSize); + pBmpList = new BitmapList_impl(); } XDashList::~XDashList() @@ -341,7 +341,13 @@ sal_Bool XDashList::CreateBitmapsForUI() DBG_ASSERT( pBmp, "XDashList: Bitmap(UI) konnte nicht erzeugt werden!" ); if( pBmp ) - pBmpList->Insert( pBmp, i ); + { + if ( (size_t)i < pBmpList->size() ) { + pBmpList->insert( pBmpList->begin() + i, pBmp ); + } else { + pBmpList->push_back( pBmp ); + } + } } impDestroy(); |