Skip to content
Permalink
Browse files

Fix apply null grid shift for source projection string

  • Loading branch information
mhugent committed Jan 30, 2014
1 parent c21fc54 commit b1d1f1052588d3061760eee750d4ff35920cc93f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgscoordinatetransform.cpp
@@ -181,7 +181,6 @@ void QgsCoordinateTransform::initialise()
{
sourceProjString += ( " " + datumTransformString( mSourceDatumTransform ) );
}
mSourceProjection = pj_init_plus( sourceProjString.toUtf8() );

pj_free( mDestinationProjection );
QString destProjString = mDestCRS.toProj4();
@@ -199,6 +198,7 @@ void QgsCoordinateTransform::initialise()
addNullGridShifts( sourceProjString, destProjString );
}

mSourceProjection = pj_init_plus( sourceProjString.toUtf8() );
mDestinationProjection = pj_init_plus( destProjString.toUtf8() );

#ifdef COORDINATE_TRANSFORM_VERBOSE

0 comments on commit b1d1f10

Please sign in to comment.