Skip to content
Permalink
Browse files

Move warning to better location

  • Loading branch information
nyalldawson committed Nov 6, 2017
1 parent 30604ed commit 6a6e81f57c3821dfe905afa53b439d7aa8089dbc
Showing with 5 additions and 5 deletions.
  1. +5 −0 src/core/qgscoordinatetransform.cpp
  2. +0 −5 src/core/qgscoordinatetransform_p.cpp
@@ -500,6 +500,11 @@ void QgsCoordinateTransform::transformCoords( int numPoints, double *x, double *
QgsDebugMsg( QString( "[[[[[[ Number of points to transform: %1 ]]]]]]" ).arg( numPoints ) );
#endif

#ifdef QGISDEBUG
if ( !d->mHasContext )
qWarning( "No QgsCoordinateTransformContext context set for transform" );
#endif

// use proj4 to do the transform

// if the source/destination projection is lat/long, convert the points to radians
@@ -105,11 +105,6 @@ bool QgsCoordinateTransformPrivate::initialize()

mIsValid = true;

#ifdef QGISDEBUG
if ( !mHasContext )
qWarning( "No QgsCoordinateTransformContext context set for transform" );
#endif

int sourceDatumTransform = mSourceDatumTransform;
int destDatumTransform = mDestinationDatumTransform;
bool useDefaultDatumTransform = ( sourceDatumTransform == - 1 && destDatumTransform == -1 );

0 comments on commit 6a6e81f

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