fixed selection crashes.

This commit is contained in:
2025-09-06 16:06:47 +02:00
parent 89c671295f
commit 0fe15d6043
5 changed files with 39 additions and 28 deletions

View File

@@ -114,7 +114,9 @@ void XQCommand::saveNodes( const QModelIndexList& list )
// knoten holen
const XQNodePtr& contentNode = XQItem::xqItemFromIndex( entry ).contentNode();
// hier speichern wir den original knoten, nicht einen clone, wie im clipboard.
push_back( {entry.row(), contentNode->own_pos(), contentNode } );
// obacht: bei einem Header is der content node null
if(contentNode)
push_back( {entry.row(), contentNode->own_pos(), contentNode } );
}
}