Skip to content
Permalink
Browse files

Get transform context from project instance in app

  • Loading branch information
elpaso authored and nyalldawson committed Apr 17, 2019
1 parent 9afa5bb commit 6e0bd822f3399e1d6946d583a789db445090ffc1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -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() )
@@ -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:

0 comments on commit 6e0bd82

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