Skip to content
Permalink
Browse files

Restore layer variables when loading QML

Fix #14452
  • Loading branch information
m-kuhn committed Oct 21, 2016
1 parent b6ee239 commit 35f9aa29940378ae8711891e9fca944e1f10a1da
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/core/qgsvectorlayer.cpp
  2. +2 −0 src/core/raster/qgsrasterlayer.cpp
@@ -1774,6 +1774,8 @@ bool QgsVectorLayer::readSymbology( const QDomNode& node, QString& errorMessage

mConditionalStyles->readXml( node );

readCustomProperties( node, "variable" );

return true;
}

@@ -1192,6 +1192,8 @@ bool QgsRasterLayer::readSymbology( const QDomNode& layer_node, QString& errorMe
setBlendMode( QgsPainting::getCompositionMode( static_cast< QgsPainting::BlendMode >( e.text().toInt() ) ) );
}

readCustomProperties( layer_node );

return true;
}

0 comments on commit 35f9aa2

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