summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/anchoredobject.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/anchoredobject.cxx b/sw/source/core/layout/anchoredobject.cxx
index 77cf548f6428..9e6dc5e351d4 100644
--- a/sw/source/core/layout/anchoredobject.cxx
+++ b/sw/source/core/layout/anchoredobject.cxx
@@ -246,8 +246,9 @@ void SwAnchoredObject::ResetLastCharRectHeight()
// =============================================================================
void SwAnchoredObject::SetVertPosOrientFrm( const SwLayoutFrm& _rVertPosOrientFrm )
{
- mpVertPosOrientFrm = &_rVertPosOrientFrm;
+ ClearVertPosOrientFrm();
+ mpVertPosOrientFrm = &_rVertPosOrientFrm;
const_cast<SwLayoutFrm*>(mpVertPosOrientFrm)->SetVertPosOrientFrmFor(this);
// #i28701# - take over functionality of deleted method