Skip to content

Commit

Permalink
fix #4282
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 30, 2011
1 parent a0be3b9 commit ef9e214
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/qgscoordinatetransform.cpp
Expand Up @@ -351,9 +351,15 @@ QgsRectangle QgsCoordinateTransform::transformBoundingBox( const QgsRectangle re
// This is done by looking at a number of points spread evenly
// across the rectangle

if ( mShortCircuit || !mInitialisedFlag || rect.isEmpty() )
if ( mShortCircuit || !mInitialisedFlag )
return rect;

if ( rect.isEmpty() )
{
QgsPoint p = transform( rect.xMinimum(), rect.yMinimum(), direction );
return QgsRectangle( p, p );
}

static const int numP = 8;

QgsRectangle bb_rect;
Expand Down

0 comments on commit ef9e214

Please sign in to comment.