[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Wed Dec 1 08:01:37 PST 2010
sw/source/core/layout/pagechg.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit c5e72df55b787568e8cb45e3b0afc517f594cb3a
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Wed Dec 1 17:00:52 2010 +0100
Layout debugging: the SwBodyFrm::Paint shouldn't paint in non-debug mode
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index ab5e523..5863e91 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
}
/*************************************************************************
More information about the Libreoffice-commits
mailing list