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
This commit is contained in:
Caolán McNamara 2011-11-29 23:19:12 +00:00
parent b7b23ac999
commit 920a261c8a

View file

@ -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();
}
}
// -----------------------------------------------------------------------