Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid deprecated method
  • Loading branch information
nyalldawson committed Jun 1, 2021
1 parent ce5271c commit 1dc93df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/grass/qgsgrassprovidermodule.cpp
Expand Up @@ -27,6 +27,7 @@
#include "qgsgrassprovider.h"
#include "qgsgrass.h"
#include "qgsgrassvector.h"
#include "qgsproject.h"

#ifdef HAVE_GUI
#include "qgsnewnamedialog.h"
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 1dc93df

Please sign in to comment.