Skip to content

Commit 4437707

Browse files
committed
Followup 914ecc, also fix calculation of srcDataType
1 parent 0c052c5 commit 4437707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/gdal/qgsgdalprovider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,9 @@ QGis::DataType QgsGdalProvider::srcDataType( int bandNo ) const
10911091
// define if the band has scale and offset to apply
10921092
double myScale = bandScale( bandNo );
10931093
double myOffset = bandOffset( bandNo );
1094-
if ( myScale != 1.0 && myOffset != 0.0 )
1094+
if ( myScale != 1.0 || myOffset != 0.0 )
10951095
{
1096-
// if the band has scale and offset to apply change dataType
1096+
// if the band has scale or offset to apply change dataType
10971097
switch ( myDataType )
10981098
{
10991099
case QGis::UnknownDataType:

0 commit comments

Comments
 (0)