mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #30017 from elpaso/bugfix-gh29747-layout-mgr-crashes-copying
Don't crash when copying layout elements
This commit is contained in:
commit
3885944c59
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user