[Libreoffice-commits] .: vcl/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Nov 29 15:23:40 PST 2011
vcl/source/gdi/print.cxx | 20 --------------------
1 file changed, 20 deletions(-)
New commits:
commit 920a261c8aaeaa268029158ed35a425f160e95d0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Nov 29 23:19:12 2011 +0000
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
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index af42de8..6a4caba 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<long>(nLeft),
- static_cast<long>(nTop) ),
- MapMode( MAP_100TH_MM )
- );
- mnOutWidth = maPaperSize.Width() - 2*maPageOffset.X();
- mnOutWidth = maPaperSize.Width() - 2*maPageOffset.Y();
- }
}
// -----------------------------------------------------------------------
More information about the Libreoffice-commits
mailing list