From 01ba19094272cb661f781c091fd11f3a01dc1ea0 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Tue, 22 Mar 2016 15:41:04 +0100 Subject: tdf#95977: fix fly positioning regression from 0c5cbcd7 Change-Id: I7e11c7072ba0ec82237985da79f8572fdda05778 Reviewed-on: https://gerrit.libreoffice.org/23430 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- sw/source/core/layout/flycnt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx index a500fe3779ab..0423ea72eb2c 100644 --- a/sw/source/core/layout/flycnt.cxx +++ b/sw/source/core/layout/flycnt.cxx @@ -1221,7 +1221,7 @@ void SwFlyAtCntFrm::SetAbsPos( const Point &rNew ) nY -= pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid(); } else - nY = rNew.Y() - pCnt->Frm().Top() + pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid(); + nY = rNew.Y() - pCnt->Frm().Top() - pCnt->GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid(); } else { -- cgit v1.2.3