diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-02 15:31:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-02 18:19:57 +0200 |
commit | a6b1d12447628016241efd643d074ce66b025c47 (patch) | |
tree | f12902b63ace7f948ed37bc65dcb289d98927693 /svl/source/items | |
parent | 743a9b226d6244dc2e92ccee00f83bfe99e521ae (diff) |
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/source/items')
-rw-r--r-- | svl/source/items/itempool.cxx | 2 |
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; } } |