Skip to content
Permalink
Browse files

Followup 914ecc, also fix calculation of srcDataType

  • Loading branch information
nyalldawson committed Mar 10, 2015
1 parent 0c052c5 commit 44377073c4a5a3ca01adac68d088e6da4786564d
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 4437707

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