Skip to content
Permalink
Browse files

labeling: use transformation with datum

  • Loading branch information
jef-n committed May 7, 2015
1 parent fb141e7 commit b91cbee7028a1659497ace1ee35bf9f99e585c37
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgspallabeling.cpp
@@ -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 );

0 comments on commit b91cbee

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