Skip to content
Permalink
Browse files
size_t and typo
  • Loading branch information
vcloarec authored and nyalldawson committed Jan 8, 2022
1 parent 0814855 commit f3224fb9d6a7999b1d2e90bfb943ac9fdf18766b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
  2. +1 −1 src/providers/wms/qgswmsprovider.h
@@ -1009,7 +1009,7 @@ bool QgsWmsProvider::readBlock( int bandNo, QgsRectangle const &viewExtent, int
}

QgsDebugMsgLevel( QStringLiteral( "image height = %1 bytesPerLine = %2" ).arg( image->height() ) . arg( image->bytesPerLine() ), 3 );
size_t pixelsCount = pixelWidth * pixelHeight;
size_t pixelsCount = static_cast<size_t>( pixelWidth ) * pixelHeight;
size_t myExpectedSize = pixelsCount * 4;
size_t myImageSize = image->height() * image->bytesPerLine();
if ( myExpectedSize != myImageSize ) // should not happen
@@ -275,7 +275,7 @@ class QgsWmsProvider final: public QgsRasterDataProvider
QList< double > nativeResolutions() const override;
QgsLayerMetadata layerMetadata() const override;

// Statitics could be available if the provider has a converter from colors to other value type, the returned statistics depend on the converter
// Statistics could be available if the provider has a converter from colors to other value type, the returned statistics depend on the converter
QgsRasterBandStats bandStatistics( int bandNo,
int stats = QgsRasterBandStats::All,
const QgsRectangle &extent = QgsRectangle(),

0 comments on commit f3224fb

Please sign in to comment.