mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
labeling: use transformation with datum
This commit is contained in:
parent
fb141e76fe
commit
b91cbee702
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user