Skip to content
Permalink
Browse files

Followup 914ecc, also fix calculation of srcDataType

  • Loading branch information
nyalldawson committed Mar 10, 2015
1 parent 326b498 commit 9490d667d3295b3ea6463af069a98062b4a18387
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/gdal/qgsgdalprovider.cpp
@@ -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:

0 comments on commit 9490d66

Please sign in to comment.
You can’t perform that action at this time.