diff options
Diffstat (limited to 'sw/source/core/undo/undobj1.cxx')
-rw-r--r-- | sw/source/core/undo/undobj1.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx index 27063a251aab..763b2ed5b221 100644 --- a/sw/source/core/undo/undobj1.cxx +++ b/sw/source/core/undo/undobj1.cxx @@ -636,7 +636,8 @@ void SwUndoSetFlyFormat::PutAttr( sal_uInt16 nWhich, const SfxPoolItem* pItem ) bAnchorChgd = true; const SwFormatAnchor* pAnchor = static_cast<const SwFormatAnchor*>(pItem); - switch( nOldAnchorTyp = pAnchor->GetAnchorId() ) + nOldAnchorTyp = pAnchor->GetAnchorId(); + switch( nOldAnchorTyp ) { case RndStdIds::FLY_AS_CHAR: case RndStdIds::FLY_AT_CHAR: @@ -652,7 +653,8 @@ void SwUndoSetFlyFormat::PutAttr( sal_uInt16 nWhich, const SfxPoolItem* pItem ) } pAnchor = &pFrameFormat->GetAnchor(); - switch( nNewAnchorTyp = pAnchor->GetAnchorId() ) + nNewAnchorTyp = pAnchor->GetAnchorId(); + switch( nNewAnchorTyp ) { case RndStdIds::FLY_AS_CHAR: case RndStdIds::FLY_AT_CHAR: |