summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-12-01 17:00:52 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-12-01 17:00:52 +0100
commit51b560b3da65e98e5efa16b564b0f626d9a4d0fb (patch)
treecf39bd236124af2d58a2dd019f91c67072f67459
parent886918a03098888741a39a59b510f9ce258575fb (diff)
Layout debugging: the SwBodyFrm::Paint shouldn't paint in non-debug mode
-rw-r--r--sw/source/core/layout/pagechg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index ff59d91d6c5a..1eb984394975 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -192,18 +192,17 @@ void SwBodyFrm::Format( const SwBorderAttrs * )
void SwBodyFrm::Paint( const SwRect& rRect, const SwPrtOptions* ) const
{
#if OSL_DEBUG_LAYOUT > 1
- fprintf( stderr, "SwBodyFrm::Paint()\n" );
-#endif
+ // Paint a red border around the SwBodyFrm in debug mode
ViewShell *pSh = GetShell();
OutputDevice* pOut = pSh->GetOut();
pOut->Push();
pOut->SetLineColor(Color(255, 0, 0));
pOut->SetFillColor(COL_TRANSPARENT);
- SwRect aRect(Frm().Left()+5, Frm().Top()+5, Frm().Width()-5, Frm().Height()-5);
-// SwRect aRect = Frm();
+ SwRect aRect = Frm();
pOut->DrawRect(aRect.SVRect());
pOut->Pop();
SwLayoutFrm::Paint(rRect);
+#endif
}
/*************************************************************************