Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #30017 from elpaso/bugfix-gh29747-layout-mgr-crash…
…es-copying

Don't crash when copying layout elements
  • Loading branch information
elpaso committed May 30, 2019
2 parents c2042a2 + 8988fbc commit 3885944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layout/qgslayoutview.cpp
Expand Up @@ -339,7 +339,7 @@ void QgsLayoutView::copyItems( const QList<QgsLayoutItem *> &items, QgsLayoutVie
else if ( QgsLayoutFrame *frame = qobject_cast<QgsLayoutFrame *>( item ) )
{
// copy multiframe too
if ( !copiedMultiFrames.contains( frame->multiFrame() ) )
if ( frame->multiFrame() && !copiedMultiFrames.contains( frame->multiFrame() ) )
{
frame->multiFrame()->writeXml( documentElement, doc, context );
copiedMultiFrames.insert( frame->multiFrame() );
Expand Down

0 comments on commit 3885944

Please sign in to comment.