Skip to content

Commit

Permalink
disabled raster data file timestamp check in loading style, fixes #6900
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 15, 2013
1 parent 01c46cb commit dbb0730
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -1513,6 +1513,11 @@ bool QgsRasterLayer::readXml( const QDomNode& layer_node )
}

// Check timestamp
// This was probably introduced to reload completely raster if data changed and
// reset completly symbology to reflect new data type etc. It creates however
// problems, because user defined symbology is complete lost if data file time
// changed (the content may be the same). See also 6900.
#if 0
QDomNode stampNode = layer_node.namedItem( "timestamp" );
if ( !stampNode.isNull() )
{
Expand All @@ -1527,6 +1532,7 @@ bool QgsRasterLayer::readXml( const QDomNode& layer_node )
if ( !mValid ) return false;
}
}
#endif

// Load user no data value
QDomElement noDataElement = layer_node.firstChildElement( "noData" );
Expand Down

0 comments on commit dbb0730

Please sign in to comment.