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
commitc5e72df55b787568e8cb45e3b0afc517f594cb3a (patch)
treec842b13f35c56f22db727a7fe271c09a6041a739
parent54e3f214f58830e52a1276cca42dd16f1cd3b2ce (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 ab5e523a58..5863e9102c 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
}
/*************************************************************************