Skip to content

Commit

Permalink
Get transform context from project instance in app
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Apr 17, 2019
1 parent 9afa5bb commit 6e0bd82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -7573,7 +7573,7 @@ QString QgisApp::saveAsRasterFile( QgsRasterLayer *rasterLayer, const bool defau
QgsDebugMsg( QStringLiteral( "Cannot get pipe projector" ) );
return QString();
}
projector->setCrs( rasterLayer->crs(), d.outputCrs(), rasterLayer->dataProvider()->transformContext() );
projector->setCrs( rasterLayer->crs(), d.outputCrs(), QgsProject::instance()->transformContext() );
}

if ( !pipe->last() )
Expand All @@ -7595,7 +7595,7 @@ QString QgisApp::saveAsRasterFile( QgsRasterLayer *rasterLayer, const bool defau
QString outputFormat = d.outputFormat();

QgsRasterFileWriterTask *writerTask = new QgsRasterFileWriterTask( fileWriter, pipe.release(), d.nColumns(), d.nRows(),
d.outputRectangle(), d.outputCrs() );
d.outputRectangle(), QgsProject::instance()->transformContext(), d.outputCrs() );

// when writer is successful:

Expand Down

0 comments on commit 6e0bd82

Please sign in to comment.