[Libreoffice-commits] .: Branch 'libreoffice-3-4' - 2 commits - sw/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Fri May 13 07:54:11 PDT 2011
sw/source/core/layout/paintfrm.cxx | 5 ++---
sw/source/core/layout/tabfrm.cxx | 2 +-
sw/source/core/undo/SwUndoPageDesc.cxx | 16 ----------------
3 files changed, 3 insertions(+), 20 deletions(-)
New commits:
commit cec2e2a1272d79b138cb190dcca68337b866cde6
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date: Fri May 13 15:25:01 2011 +0200
fdo#36826: draw background before borders or borders may be hidden
Signed-off-by: Fridrich Å trba <fridrich.strba at bluewin.ch>
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 904c2c9..144d2b0 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -5810,13 +5810,12 @@ void SwFrm::PaintBackground( const SwRect &rRect, const SwPageFrm *pPage,
{
SwBorderAttrAccess aAccess( SwFrm::GetCache(), (SwFrm*)pFrm );
const SwBorderAttrs &rTmpAttrs = *aAccess.Get();
- /// OD 06.08.2002 #99657# - paint border before painting background
- if ( bLowerBorder )
- pFrm->PaintBorder( aBorderRect, pPage, rTmpAttrs );
if ( ( pFrm->IsLayoutFrm() && bLowerBorder ) ||
aFrmRect.IsOver( aRect ) )
pFrm->PaintBackground( aRect, pPage, rTmpAttrs, bLowMode,
bLowerBorder );
+ if ( bLowerBorder )
+ pFrm->PaintBorder( aBorderRect, pPage, rTmpAttrs );
}
pFrm = pFrm->GetNext();
} while ( pFrm && pFrm->GetUpper() == this &&
commit 55a0c66901f701ad13ddd8fd41dbdcb443ca2171
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
Date: Wed May 11 14:20:44 2011 +0200
fix debug build
Signed-off-by: Fridrich Å trba <fridrich.strba at bluewin.ch>
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 93cbfc3..aaa73ca 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -1568,7 +1568,7 @@ bool SwCntntFrm::CalcLowers( SwLayoutFrm* pLay, const SwLayoutFrm* pDontLeave,
}
#if OSL_DEBUG_LEVEL > 1
- OSL_FAIL( "LoopControl in SwCntntFrm::CalcLowers" )
+ OSL_FAIL( "LoopControl in SwCntntFrm::CalcLowers" );
#endif
}
}
diff --git a/sw/source/core/undo/SwUndoPageDesc.cxx b/sw/source/core/undo/SwUndoPageDesc.cxx
index c8f9b0c..7b0eb6a 100644
--- a/sw/source/core/undo/SwUndoPageDesc.cxx
+++ b/sw/source/core/undo/SwUndoPageDesc.cxx
@@ -64,10 +64,6 @@ void DebugHeaderFooterContent( const SwPageDesc& rPageDesc )
SwFrmFmt* pHeaderFmt = rHead.GetHeaderFmt();
if( pHeaderFmt )
{
- nHeaderCount = pHeaderFmt->GetClientCount();
- {
- int nHeaderCount = 0;
- }
const SwFmtCntnt* pCntnt = &pHeaderFmt->GetCntnt();
if( pCntnt->GetCntntIdx() )
nHeaderMaster = pCntnt->GetCntntIdx()->GetIndex();
@@ -77,10 +73,6 @@ void DebugHeaderFooterContent( const SwPageDesc& rPageDesc )
SwFrmFmt* pLeftHeaderFmt = rLeftHead.GetHeaderFmt();
if( pLeftHeaderFmt )
{
- nLeftHeaderCount = pLeftHeaderFmt->GetClientCount();
- {
- int nLeftHeaderCount = 0;
- }
const SwFmtCntnt* pLeftCntnt = &pLeftHeaderFmt->GetCntnt();
if( pLeftCntnt->GetCntntIdx() )
nHeaderLeft = pLeftCntnt->GetCntntIdx()->GetIndex();
@@ -93,10 +85,6 @@ void DebugHeaderFooterContent( const SwPageDesc& rPageDesc )
SwFrmFmt* pFooterFmt = rFoot.GetFooterFmt();
if( pFooterFmt )
{
- nFooterCount = pFooterFmt->GetClientCount();
- {
- int nFooterCount = 0;
- }
const SwFmtCntnt* pCntnt = &pFooterFmt->GetCntnt();
if( pCntnt->GetCntntIdx() )
nFooterMaster = pCntnt->GetCntntIdx()->GetIndex();
@@ -106,10 +94,6 @@ void DebugHeaderFooterContent( const SwPageDesc& rPageDesc )
SwFrmFmt* pLeftFooterFmt = rLeftFoot.GetFooterFmt();
if( pLeftFooterFmt )
{
- nLeftFooterCount = pLeftFooterFmt->GetClientCount();
- {
- int nLeftFooterCount = 0;
- }
const SwFmtCntnt* pLeftCntnt = &pLeftFooterFmt->GetCntnt();
if( pLeftCntnt->GetCntntIdx() )
nFooterLeft = pLeftCntnt->GetCntntIdx()->GetIndex();
More information about the Libreoffice-commits
mailing list