From 920a261c8aaeaa268029158ed35a425f160e95d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 29 Nov 2011 23:19:12 +0000 Subject: [PATCH] getenv based debugging code doesn't make complete sense, remove i.e. mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X(); mnOutWidth = maPaperSize.Width() - 2*maPageOffset.Y(); might possibly be intended to be mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X(); mnOutHeight = maPaperSize.Height() - 2*maPageOffset.Y(); either way, its behind a special getenv, so ditch the lot --- vcl/source/gdi/print.cxx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index af42de872b7a..6a4cabaecbfe 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -622,26 +622,6 @@ void Printer::ImplUpdatePageData() mnOutWidth, mnOutHeight, maPageOffset.X(), maPageOffset.Y(), maPaperSize.Width(), maPaperSize.Height() ); - static const char* pDebugOffset = getenv( "SAL_DBG_PAGEOFFSET" ); - if( pDebugOffset ) - { - rtl::OString aLine( pDebugOffset ); - sal_Int32 nIndex = 0; - rtl::OString aToken( aLine.getToken( 0, ',', nIndex ) ); - sal_Int32 nLeft = aToken.toInt32(); - sal_Int32 nTop = nLeft; - if( nIndex > 0 ) - { - aToken = aLine.getToken( 0, ',', nIndex ); - nTop = aToken.toInt32(); - } - maPageOffset = LogicToPixel( Point( static_cast(nLeft), - static_cast(nTop) ), - MapMode( MAP_100TH_MM ) - ); - mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X(); - mnOutWidth = maPaperSize.Width() - 2*maPageOffset.Y(); - } } // -----------------------------------------------------------------------