Skip to content

Commit

Permalink
Be less restrictive when saving annotation layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent d358757 commit aefd777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/annotations/qgsannotationlayer.cpp
Expand Up @@ -163,9 +163,9 @@ bool QgsAnnotationLayer::writeXml( QDomNode &layer_node, QDomDocument &doc, cons
// first get the layer element so that we can append the type attribute
QDomElement mapLayerNode = layer_node.toElement();

if ( mapLayerNode.isNull() || ( QLatin1String( "maplayer" ) != mapLayerNode.nodeName() ) )
if ( mapLayerNode.isNull() )
{
QgsDebugMsgLevel( QStringLiteral( "can't find <maplayer>" ), 2 );
QgsDebugMsgLevel( QStringLiteral( "can't find maplayer node" ), 2 );
return false;
}

Expand Down

0 comments on commit aefd777

Please sign in to comment.