Skip to content

Commit 3885944

Browse files
authoredMay 30, 2019
Merge pull request #30017 from elpaso/bugfix-gh29747-layout-mgr-crashes-copying
Don't crash when copying layout elements
2 parents c2042a2 + 8988fbc commit 3885944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/layout/qgslayoutview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void QgsLayoutView::copyItems( const QList<QgsLayoutItem *> &items, QgsLayoutVie
339339
else if ( QgsLayoutFrame *frame = qobject_cast<QgsLayoutFrame *>( item ) )
340340
{
341341
// copy multiframe too
342-
if ( !copiedMultiFrames.contains( frame->multiFrame() ) )
342+
if ( frame->multiFrame() && !copiedMultiFrames.contains( frame->multiFrame() ) )
343343
{
344344
frame->multiFrame()->writeXml( documentElement, doc, context );
345345
copiedMultiFrames.insert( frame->multiFrame() );

0 commit comments

Comments
 (0)
Please sign in to comment.