Skip to content

Commit

Permalink
[layout] Skip empty multiframe items when writing xml
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 14, 2019
1 parent 90cd463 commit 85fdbb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/layout/qgslayout.cpp
Expand Up @@ -830,7 +830,8 @@ QDomElement QgsLayout::writeXml( QDomDocument &document, const QgsReadWriteConte
//save multiframes
for ( QgsLayoutMultiFrame *mf : mMultiFrames )
{
mf->writeXml( element, document, context );
if ( mf->frameCount() > 0 )
mf->writeXml( element, document, context );
}

writeXmlLayoutSettings( element, document, context );
Expand Down

0 comments on commit 85fdbb2

Please sign in to comment.