Skip to content
Permalink
Browse files

[map themes] avoid writing empty style to layer

  • Loading branch information
nirvn committed Jan 17, 2018
1 parent 96d1ea5 commit 02b24a68f019d259018dc85430762b034fc20c7e
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsmaplayerstylemanager.cpp
@@ -270,6 +270,11 @@ void QgsMapLayerStyle::readFromLayer( QgsMapLayer *layer )

void QgsMapLayerStyle::writeToLayer( QgsMapLayer *layer ) const
{
if ( !isValid() )
{
return;
}

QDomDocument doc( QStringLiteral( "qgis" ) );
if ( !doc.setContent( mXmlData ) )
{

0 comments on commit 02b24a6

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