From 0f1120ad344ae220a93bd2af9cf4a6bf50e25888 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 27 Feb 2012 15:09:52 +0100 Subject: Fix build (few missing {'s in the translations). --- sw/source/core/layout/findfrm.cxx | 1 + sw/source/core/layout/flycnt.cxx | 1 + sw/source/core/layout/paintfrm.cxx | 1 + sw/source/core/layout/wsfrm.cxx | 2 ++ 4 files changed, 5 insertions(+) diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx index c4829a3a11a0..a2c7bf0d2d4c 100644 --- a/sw/source/core/layout/findfrm.cxx +++ b/sw/source/core/layout/findfrm.cxx @@ -1365,6 +1365,7 @@ void SwFrm::SetInfFlags() if( IsFtnContFrm() ) bInfFtn = sal_True; do + { // bInfBody is only set in the page body, but not in the column body if ( pFrm->IsBodyFrm() && !bInfFtn && pFrm->GetUpper() && pFrm->GetUpper()->IsPageFrm() ) diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx index 3c2cf9caa50c..0e21be6213b7 100644 --- a/sw/source/core/layout/flycnt.cxx +++ b/sw/source/core/layout/flycnt.cxx @@ -937,6 +937,7 @@ sal_uLong MA_FASTCALL lcl_FindCntDiff( const Point &rPt, const SwLayoutFrm *pLay if ( pCnt->Frm().Top() <= rPt.Y() ) { if ( nDiff < nDistance ) + { //This one is the nearer one nDistance = nNearest = nDiff; rpCnt = pNearest = pCnt; diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index b9b903afa11e..271ee0b3af73 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -6189,6 +6189,7 @@ void MA_FASTCALL lcl_RefreshLine( const SwLayoutFrm *pLay, aP2( rP2 ); while ( aP1.*pDirPt < aP2.*pDirPt ) + { //If the starting point lies in a fly, it is directly set behind the //fly. //The end point moves to the start if the end point lies in a fly or we diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx index ff0301599b5f..e2600e39d830 100644 --- a/sw/source/core/layout/wsfrm.cxx +++ b/sw/source/core/layout/wsfrm.cxx @@ -741,6 +741,7 @@ void SwFrm::InsertGroupBefore( SwFrm* pParent, SwFrm* pBehind, SwFrm* pSct ) pBehind->pPrev = pLast; } else + { //Insert at the end, or ... the first node in the subtree pPrev = pUpper->Lower(); if ( pPrev ) @@ -931,6 +932,7 @@ void SwCntntFrm::Cut() } if( 0 != (pFrm = GetIndNext()) ) + { //The old follower may calculated a gap to the predecessor which now //becomes obsolete or different respectively as it becomes the first //one itself. -- cgit