summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-02 15:31:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-02 18:19:57 +0200
commita6b1d12447628016241efd643d074ce66b025c47 (patch)
treef12902b63ace7f948ed37bc65dcb289d98927693 /svl
parentfix bug in XFillBitmapItem::PutValue (diff)
downloadcore-a6b1d12447628016241efd643d074ce66b025c47.tar.gz
core-a6b1d12447628016241efd643d074ce66b025c47.zip
fix assert in SfxItemPool::PutImpl
Change-Id: I6e9abe241c7a001b503a9e3006d08c0dfc52fcda Reviewed-on: https://gerrit.libreoffice.org/71676 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itempool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 406b4a3db785..11be19bc62e0 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -651,7 +651,7 @@ const SfxPoolItem& SfxItemPool::PutImpl( const SfxPoolItem& rItem, sal_uInt16 nW
if (**itr == rItem)
{
AddRef(**itr);
- assert(!bPassingOwnership && "can't be passing ownership and have the item already in the pool");
+ assert((!bPassingOwnership || (&rItem != *itr)) && "can't be passing ownership and have the item already in the pool");
return **itr;
}
}