Skip to content

Commit

Permalink
Check for short-circuit in QgsCoordinateTransform::transformCoords
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoedkoop authored and nyalldawson committed Nov 26, 2015
1 parent de602e7 commit 0e866f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgscoordinatetransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ QgsRectangle QgsCoordinateTransform::transformBoundingBox( const QgsRectangle &r

void QgsCoordinateTransform::transformCoords( const int& numPoints, double *x, double *y, double *z, TransformDirection direction ) const
{
if ( mShortCircuit || !mInitialisedFlag )
return;
// Refuse to transform the points if the srs's are invalid
if ( !mSourceCRS.isValid() )
{
Expand Down

0 comments on commit 0e866f0

Please sign in to comment.