mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix loading of labeling from 2.x projects
This commit is contained in:
parent
53f8e7f744
commit
56309efc4c
@ -377,6 +377,10 @@ bool QgsMapLayer::readLayerXml( const QDomElement &layerElement, const QgsReadWr
|
||||
savedValidation = QgsCoordinateReferenceSystem::customCrsValidation();
|
||||
QgsCoordinateReferenceSystem::setCustomCrsValidation( nullptr );
|
||||
|
||||
// read custom properties before passing reading further to a subclass, so that
|
||||
// the subclass can also read custom properties
|
||||
readCustomProperties( layerElement );
|
||||
|
||||
// now let the children grab what they need from the Dom node.
|
||||
layerError = !readXml( layerElement, context );
|
||||
|
||||
@ -504,8 +508,6 @@ bool QgsMapLayer::readLayerXml( const QDomElement &layerElement, const QgsReadWr
|
||||
}
|
||||
#endif
|
||||
|
||||
readCustomProperties( layerElement );
|
||||
|
||||
mMetadata.readFromLayer( this );
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user