Skip to content

Commit

Permalink
fix debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 29, 2012
1 parent bc591f5 commit 431f29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsrasterprojector.cpp
Expand Up @@ -595,7 +595,7 @@ bool QgsRasterProjector::checkRows()
void * QgsRasterProjector::readBlock( int bandNo, QgsRectangle const & extent, int width, int height )
{
QgsDebugMsg( QString( "extent:\n%1" ).arg( extent.toString() ) );
QgsDebugMsg( QString( "width = %1 height = %1" ).arg( width ).arg( height ) );
QgsDebugMsg( QString( "width = %1 height = %2" ).arg( width ).arg( height ) );
if ( !mInput ) return 0;

if ( ! mSrcCRS.isValid() || ! mDestCRS.isValid() || mSrcCRS == mDestCRS )
Expand All @@ -610,7 +610,7 @@ void * QgsRasterProjector::readBlock( int bandNo, QgsRectangle const & extent,
calc();

QgsDebugMsg( QString( "srcExtent:\n%1" ).arg( srcExtent().toString() ) );
QgsDebugMsg( QString( "srcCols = %1 srcRows = %1" ).arg( srcCols() ).arg( srcRows() ) );
QgsDebugMsg( QString( "srcCols = %1 srcRows = %2" ).arg( srcCols() ).arg( srcRows() ) );

// If we zoom out too much, projector srcRows / srcCols maybe 0, which can cause problems in providers
if ( srcRows() <= 0 || srcCols() <= 0 )
Expand Down

0 comments on commit 431f29d

Please sign in to comment.