Skip to content

Commit 7a0e517

Browse files
committed
fix #4371
1 parent b6f250d commit 7a0e517

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/app/qgsmaptoolidentify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ bool QgsMapToolIdentify::identifyRasterLayer( QgsRasterLayer *layer, int x, int
334334
//if WMS layer does not cover the view origin,
335335
//we need to map the view pixel coordinates
336336
//to WMS layer pixel coordinates
337-
QgsRectangle viewExtent = mCanvas->extent();
337+
QgsRectangle viewExtent = toLayerCoordinates( layer, mCanvas->extent() );
338338
QgsRectangle layerExtent = layer->extent();
339339
double mapUnitsPerPixel = mCanvas->mapUnitsPerPixel();
340340
if ( mapUnitsPerPixel > 0 && viewExtent.intersects( layerExtent ) )

src/providers/gdal/qgsgdalprovider.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,9 +1060,7 @@ bool QgsGdalProvider::identify( const QgsPoint& thePoint, QMap<QString, QString>
10601060
}
10611061

10621062
//double value = readValue( data, type, 0 );
1063-
#ifdef QGISDEBUG
1064-
QgsLogger::debug( "value", value, 1, __FILE__, __FUNCTION__, __LINE__ );
1065-
#endif
1063+
QgsDebugMsg( QString( "value=%1" ).arg( value ) );
10661064
QString v;
10671065

10681066
if ( mValidNoDataValue && ( fabs( value - mNoDataValue[i-1] ) <= TINY_VALUE || value != value ) )

0 commit comments

Comments
 (0)