Skip to content

Commit 0e866f0

Browse files
dgoedkoopnyalldawson
authored andcommitted
Check for short-circuit in QgsCoordinateTransform::transformCoords
1 parent de602e7 commit 0e866f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/qgscoordinatetransform.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ QgsRectangle QgsCoordinateTransform::transformBoundingBox( const QgsRectangle &r
634634

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

0 commit comments

Comments
 (0)