Skip to content
Permalink
Browse files
fix #4282
  • Loading branch information
jef-n authored and mach0 committed Nov 13, 2011
1 parent dd461e0 commit f7c346907cd55cf6cf4de41f26147f2fb7889f81
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/core/qgscoordinatetransform.cpp
@@ -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.