Skip to content
Permalink
Browse files
fix #4282
  • Loading branch information
jef-n authored and mach0 committed Nov 13, 2011
1 parent dd461e0 commit f7c3469
Showing 1 changed file with 7 additions and 1 deletion.
@@ -350,9 +350,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;

0 comments on commit f7c3469

Please sign in to comment.