Skip to content
Permalink
Browse files

Move warning to better location

  • Loading branch information
nyalldawson committed Nov 6, 2017
1 parent 6201390 commit cc424c95096815489607cd8c11b206fc50177324
Showing with 5 additions and 5 deletions.
  1. +5 −0 src/core/qgscoordinatetransform.cpp
  2. +0 −5 src/core/qgscoordinatetransform_p.cpp
@@ -506,6 +506,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
@@ -109,11 +109,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 cc424c9

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