mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crashes in Drag and Drop if the drop target is the same as the current dragged item
This commit is contained in:
@@ -444,6 +444,9 @@ void RimSummaryCurveCollection::moveCurvesToCollection( RimSummaryCurveCollectio
|
||||
for ( auto curve : curves )
|
||||
{
|
||||
RimSummaryCurveCollection* srcCollection = nullptr;
|
||||
|
||||
if ( curve == curveToInsertBeforeOrAfter ) continue;
|
||||
|
||||
curve->firstAncestorOrThisOfTypeAsserted( srcCollection );
|
||||
|
||||
srcCollection->removeCurve( curve );
|
||||
|
||||
Reference in New Issue
Block a user