summaryrefslogtreecommitdiffstats
path: root/svx/source/xoutdev/xattrbmp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/xoutdev/xattrbmp.cxx')
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index 1f421c4a5d7b..b6df09a947fd 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -775,19 +775,15 @@ XFillBitmapItem* XFillBitmapItem::checkForUniqueItem( SdrModel* pModel ) const
{
if( pModel )
{
- const String aUniqueName = NameOrIndex::CheckNamedItem( this,
- XATTR_FILLBITMAP,
- &pModel->GetItemPool(),
- pModel->GetStyleSheetPool() ? &pModel->GetStyleSheetPool()->GetPool() : NULL,
- XFillBitmapItem::CompareValueFunc,
- RID_SVXSTR_BMP21,
- pModel->GetBitmapList() );
+ const String aUniqueName = NameOrIndex::CheckNamedItem(
+ this, XATTR_FILLBITMAP, &pModel->GetItemPool(),
+ pModel->GetStyleSheetPool() ? &pModel->GetStyleSheetPool()->GetPool() : NULL,
+ XFillBitmapItem::CompareValueFunc, RID_SVXSTR_BMP21,
+ pModel->GetPropertyList( XBITMAP_LIST ) );
// if the given name is not valid, replace it!
if( aUniqueName != GetName() )
- {
return new XFillBitmapItem( aUniqueName, aXOBitmap );
- }
}
return (XFillBitmapItem*)this;