We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c052c5 commit 4437707Copy full SHA for 4437707
src/providers/gdal/qgsgdalprovider.cpp
@@ -1091,9 +1091,9 @@ QGis::DataType QgsGdalProvider::srcDataType( int bandNo ) const
1091
// define if the band has scale and offset to apply
1092
double myScale = bandScale( bandNo );
1093
double myOffset = bandOffset( bandNo );
1094
- if ( myScale != 1.0 && myOffset != 0.0 )
+ if ( myScale != 1.0 || myOffset != 0.0 )
1095
{
1096
- // if the band has scale and offset to apply change dataType
+ // if the band has scale or offset to apply change dataType
1097
switch ( myDataType )
1098
1099
case QGis::UnknownDataType:
0 commit comments