Skip to content

Commit

Permalink
Followup 914ecc, also fix calculation of srcDataType
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 10, 2015
1 parent 326b498 commit 9490d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -1091,9 +1091,9 @@ QGis::DataType QgsGdalProvider::srcDataType( int bandNo ) const
// define if the band has scale and offset to apply
double myScale = bandScale( bandNo );
double myOffset = bandOffset( bandNo );
if ( myScale != 1.0 && myOffset != 0.0 )
if ( myScale != 1.0 || myOffset != 0.0 )
{
// if the band has scale and offset to apply change dataType
// if the band has scale or offset to apply change dataType
switch ( myDataType )
{
case QGis::UnknownDataType:
Expand Down

0 comments on commit 9490d66

Please sign in to comment.