Skip to content

Commit dbb0730

Browse files
committedMay 15, 2013
disabled raster data file timestamp check in loading style, fixes #6900
1 parent 01c46cb commit dbb0730

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,11 @@ bool QgsRasterLayer::readXml( const QDomNode& layer_node )
15131513
}
15141514

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.