Skip to content
Permalink
Browse files

fix #4282

  • Loading branch information
jef-n committed Sep 30, 2011
1 parent a0be3b9 commit ef9e214c707ece892ea191e109453914adb67115
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/qgscoordinatetransform.cpp
@@ -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;

0 comments on commit ef9e214

Please sign in to comment.
You can’t perform that action at this time.