summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-09 19:55:13 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-09 19:56:51 +0100
commitc20930bfec4ce4953ffdaff1971216290fab0e4d (patch)
tree649411d5a1d208ba273159a2ec9d45e3b5daaf90 /sw
parentdf7f3c6733c1b4e4470554497f2c2aa96a442c30 (diff)
also fix SwXFlatParagraphIterator
Change-Id: Ib35759c4d9e6ebc8e211d57d53d923f15ac9845a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index 4628abc8763e..62f77d861c97 100644
--- a/sw/source/core/unocore/unoflatpara.cxx
+++ b/sw/source/core/unocore/unoflatpara.cxx
@@ -361,6 +361,9 @@ SwXFlatParagraphIterator::SwXFlatParagraphIterator( SwDoc& rDoc, sal_Int32 nType
SwXFlatParagraphIterator::~SwXFlatParagraphIterator()
{
+ SolarMutexGuard aGuard;
+ if(GetRegisteredIn())
+ GetRegisteredIn()->Remove(this);
}
void SwXFlatParagraphIterator::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )