Skip to content
Permalink
Browse files

Merge 92d9d71 into cherry-pick-backport-9556-on-release-3_6-6dba5332-…

…8355-474c-b2fd-e8cf731a5443
  • Loading branch information
backporting committed Mar 19, 2019
2 parents 607a374 + 92d9d71 commit 0759b27f79713f0ef899f91bcdfb222828d82e22
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/core/qgsvectorlayerdiagramprovider.cpp
@@ -148,14 +148,12 @@ bool QgsVectorLayerDiagramProvider::prepare( const QgsRenderContext &context, QS
const QgsMapSettings &mapSettings = mEngine->mapSettings();

if ( context.coordinateTransform().isValid() )
// this is context for layer rendering - use its CT as it includes correct datum transform
// this is context for layer rendering
s2.setCoordinateTransform( context.coordinateTransform() );
else
{
// otherwise fall back to creating our own CT - this one may not have the correct datum transform!
Q_NOWARN_DEPRECATED_PUSH
s2.setCoordinateTransform( QgsCoordinateTransform( mLayerCrs, mapSettings.destinationCrs() ) );
Q_NOWARN_DEPRECATED_POP
// otherwise fall back to creating our own CT
s2.setCoordinateTransform( QgsCoordinateTransform( mLayerCrs, mapSettings.destinationCrs(), context.transformContext() ) );
}

s2.setRenderer( mDiagRenderer );

0 comments on commit 0759b27

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