Skip to content

Commit

Permalink
Restore layer variables when loading QML
Browse files Browse the repository at this point in the history
Fix #14452
  • Loading branch information
m-kuhn committed Oct 21, 2016
1 parent b6ee239 commit 35f9aa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -1774,6 +1774,8 @@ bool QgsVectorLayer::readSymbology( const QDomNode& node, QString& errorMessage

mConditionalStyles->readXml( node );

readCustomProperties( node, "variable" );

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 35f9aa2

Please sign in to comment.