summaryrefslogtreecommitdiff
path: root/sw/source/core/para/paratr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/para/paratr.cxx')
-rw-r--r--sw/source/core/para/paratr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx
index 68dc9bd1c5df..f66b388ffabe 100644
--- a/sw/source/core/para/paratr.cxx
+++ b/sw/source/core/para/paratr.cxx
@@ -66,8 +66,7 @@ void SwFormatDrop::SetCharFormat( SwCharFormat *pNew )
{
assert(!pNew || !pNew->IsDefault()); // expose cases that lead to use-after-free
// Rewire
- if ( GetRegisteredIn() )
- GetRegisteredInNonConst()->Remove( this );
+ EndListeningAll();
if(pNew)
pNew->Add( this );
}