mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-13 09:37:29 -06:00
setPolygon() connected to the new polygon without disconnecting from the previous one, so a RimPolygonInView could receive objectChanged from a polygon it no longer references and dereference its own, possibly null, m_polygon. Disconnect from the old polygon and only sync the name from the referenced polygon. Crash stack (signature 1111e3b3ceb1): [3] RimPolygonInView::onObjectChanged(caf::SignalEmitter const*) at RimPolygonInView.cpp:441 [5] RimPolygonInView::updatePolygonFromTargets() at RimPolygonInView.cpp:259 [6] RicPolylineTargetsPickEventHandler::handle3dPickEvent(Ric3dPickEvent const&) at RicPolylineTargetsPickEventHandler.cpp:100