Skip to content

Commit

Permalink
fix #7925
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 28, 2013
1 parent a2e98d7 commit 8cfd421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ bool QgsRasterLayer::readXml( const QDomNode& layer_node )
bool res = readSymbology( layer_node, theError );

// old wms settings we need to correct
if ( res && mProviderKey == "wms" )
if ( res && mProviderKey == "wms" && (!renderer() || renderer()->type() != "singlebandcolordata") )
{
setRendererForDrawingStyle( SingleBandColorDataStyle );
}
Expand Down

0 comments on commit 8cfd421

Please sign in to comment.