summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/pagechg.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index d23c4f9b3c8d..0f677c5852ae 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -1815,7 +1815,11 @@ static void lcl_MoveAllLowers( SwFrm* pFrm, const Point& rOffset )
const SwRect aFrm( pFrm->Frm() );
// first move the current frame
- pFrm->Frm().Pos() += rOffset;
+ Point &rPoint = pFrm->Frm().Pos();
+ if (rPoint.X() != FAR_AWAY)
+ rPoint.X() += rOffset.X();
+ if (rPoint.Y() != FAR_AWAY)
+ rPoint.Y() += rOffset.Y();
// Don't forget accessibility:
if( pFrm->IsAccessibleFrm() )