Skip to content
Permalink
Browse files

Be less restrictive when saving annotation layers

  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent d358757 commit aefd7777d52ddfa335c47e95c00f0df6c6e71889
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/annotations/qgsannotationlayer.cpp
@@ -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;
}

0 comments on commit aefd777

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