Skip to content

Commit 92d9d71

Browse files
committed
Remove another use of deprecated QgsCoordinateTransform constructor
Sponsored by ICSM
1 parent ad11785 commit 92d9d71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/core/qgsvectorlayerdiagramprovider.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,12 @@ bool QgsVectorLayerDiagramProvider::prepare( const QgsRenderContext &context, QS
148148
const QgsMapSettings &mapSettings = mEngine->mapSettings();
149149

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

161159
s2.setRenderer( mDiagRenderer );

0 commit comments

Comments
 (0)