From a6b1d12447628016241efd643d074ce66b025c47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 May 2019 15:31:08 +0200 Subject: fix assert in SfxItemPool::PutImpl Change-Id: I6e9abe241c7a001b503a9e3006d08c0dfc52fcda Reviewed-on: https://gerrit.libreoffice.org/71676 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/itempool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl/source/items') 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; } } -- cgit