diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-10-26 10:54:03 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-10-30 12:13:16 +0100 |
commit | 75d4e779e408bd532ddeda2b18923806c920b4a7 (patch) | |
tree | 7c24e614b8c54d38f650b7ceb96f07beeeb446f8 /sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx | |
parent | f6edddfa230d6478571ef67ebdc506c54f589648 (diff) |
Adapted to get/setSwFrame and get/setSwPrint
Change-Id: I6cce40ec49dd5bd32d94fe06b9d2dabd368448be
Diffstat (limited to 'sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx')
-rw-r--r-- | sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx index 109f835266aa..a4b53f1668fd 100644 --- a/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx +++ b/sw/source/core/objectpositioning/tolayoutanchoredobjectposition.cxx @@ -125,8 +125,8 @@ void SwToLayoutAnchoredObjectPosition::CalcPosition() if ( !bFlyAtFly && GetAnchorFrame().IsPageFrame() && pSh && pSh->GetViewOptions()->getBrowseMode() ) { - const long nAnchorBottom = GetAnchorFrame().FrameRA().Bottom(); - const long nBottom = GetAnchorFrame().FrameRA().Top() + + const long nAnchorBottom = GetAnchorFrame().getSwFrame().Bottom(); + const long nBottom = GetAnchorFrame().getSwFrame().Top() + aRelPos.Y() + aObjBoundRect.Height(); if ( nAnchorBottom < nBottom ) { |