Skip to content
Permalink
Browse files
Avoid deprecated method
  • Loading branch information
nyalldawson committed Jun 1, 2021
1 parent ce5271c commit 1dc93dfc00101a34497d840d36c916c3d2932b91
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/grass/qgsgrassprovidermodule.cpp
@@ -27,6 +27,7 @@
#include "qgsgrassprovider.h"
#include "qgsgrass.h"
#include "qgsgrassvector.h"
#include "qgsproject.h"

#ifdef HAVE_GUI
#include "qgsnewnamedialog.h"
@@ -856,7 +857,7 @@ bool QgsGrassMapsetItem::handleDrop( const QMimeData *data, Qt::DropAction )
if ( providerCrs.isValid() && mapsetCrs.isValid() && providerCrs != mapsetCrs )
{
QgsRasterProjector *projector = new QgsRasterProjector;
projector->setCrs( providerCrs, mapsetCrs );
projector->setCrs( providerCrs, mapsetCrs, QgsProject::instance()->transformContext() );
if ( useSrcRegion )
{
projector->destExtentSize( rasterProvider->extent(), rasterProvider->xSize(), rasterProvider->ySize(),

0 comments on commit 1dc93df

Please sign in to comment.