Skip to content

Commit

Permalink
Fix apply null grid shift for source projection string
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jan 30, 2014
1 parent c21fc54 commit b1d1f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatetransform.cpp
Expand Up @@ -181,7 +181,6 @@ void QgsCoordinateTransform::initialise()
{
sourceProjString += ( " " + datumTransformString( mSourceDatumTransform ) );
}
mSourceProjection = pj_init_plus( sourceProjString.toUtf8() );

pj_free( mDestinationProjection );
QString destProjString = mDestCRS.toProj4();
Expand All @@ -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
Expand Down

0 comments on commit b1d1f10

Please sign in to comment.