Skip to content
Permalink
Browse files

fix #7925

  • Loading branch information
jef-n committed May 28, 2013
1 parent a2e98d7 commit 8cfd421c90a8dc3d1f2b0018ed24391097032610
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsrasterlayer.cpp
@@ -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 );
}

0 comments on commit 8cfd421

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