diff options
author | Michael Stahl <mst@openoffice.org> | 2010-03-16 17:07:56 +0100 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2010-03-16 17:07:56 +0100 |
commit | a4f0aa4ea560aefd0eba9dd59ad63d7d91087864 (patch) | |
tree | a4e1b6d2c72d5c41f8b269132d03c7a9709d98e4 /sw/source/core | |
parent | 775be31b8148eed368b440c49613cfb1917a027e (diff) |
sw33bf03: #i110140#: sw: ~SwTxtFld: unregister at field format
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/txtnode/atrfld.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx index 68c779f9914b..9ac53456e7ef 100644 --- a/sw/source/core/txtnode/atrfld.cxx +++ b/sw/source/core/txtnode/atrfld.cxx @@ -268,6 +268,11 @@ SwTxtFld::SwTxtFld( SwFmtFld& rAttr, xub_StrLen nStartPos ) SwTxtFld::~SwTxtFld( ) { + SwFmtFld & rFmtFld( static_cast<SwFmtFld &>(GetAttr()) ); + if (this == rFmtFld.pTxtAttr) + { + rFmtFld.pTxtAttr = 0; // #i110140# invalidate! + } } /************************************************************************* |