Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
labeling: use transformation with datum
  • Loading branch information
jef-n committed May 7, 2015
1 parent fb141e7 commit b91cbee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgspallabeling.cpp
Expand Up @@ -3323,8 +3323,8 @@ int QgsPalLabeling::prepareLayer( QgsVectorLayer* layer, QStringList& attrNames,

lyr.xform = &mMapSettings->mapToPixel();
lyr.ct = 0;
if ( mMapSettings->hasCrsTransformEnabled() )
lyr.ct = new QgsCoordinateTransform( layer->crs(), mMapSettings->destinationCrs() );
if ( mMapSettings->hasCrsTransformEnabled() && ctx.coordinateTransform() )
lyr.ct = ctx.coordinateTransform()->clone();
lyr.ptZero = lyr.xform->toMapCoordinates( 0, 0 );
lyr.ptOne = lyr.xform->toMapCoordinates( 1, 0 );

Expand Down

0 comments on commit b91cbee

Please sign in to comment.