mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -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.xform = &mMapSettings->mapToPixel();
|
||||||
lyr.ct = 0;
|
lyr.ct = 0;
|
||||||
if ( mMapSettings->hasCrsTransformEnabled() )
|
if ( mMapSettings->hasCrsTransformEnabled() && ctx.coordinateTransform() )
|
||||||
lyr.ct = new QgsCoordinateTransform( layer->crs(), mMapSettings->destinationCrs() );
|
lyr.ct = ctx.coordinateTransform()->clone();
|
||||||
lyr.ptZero = lyr.xform->toMapCoordinates( 0, 0 );
|
lyr.ptZero = lyr.xform->toMapCoordinates( 0, 0 );
|
||||||
lyr.ptOne = lyr.xform->toMapCoordinates( 1, 0 );
|
lyr.ptOne = lyr.xform->toMapCoordinates( 1, 0 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user