mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
#14311 Fix crash selecting a polygon-in-view with no polygon assigned
The polygon field was added to the UI ordering by value rather than by address, so an empty (null) polygon reference resolved to the PdmObjectHandle overload of PdmUiOrdering::add and aborted on the null assertion while building the property panel. Pass the field by address so the field-handle overload is used, matching the other add calls. Fixes #14311
This commit is contained in:
1 parent
e3f7e3f1c7
commit
1c39fed294
1 file changed
+1
-1
@@ -321,7 +321,7 @@ void RimPolygonInView::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderin
|
||||
bool enableEdit = true;
|
||||
if ( m_polygon() && m_polygon->isReadOnly() ) enableEdit = false;
|
||||
|
||||
uiOrdering.add( m_polygon );
|
||||
uiOrdering.add( &m_polygon );
|
||||
|
||||
if ( enableEdit )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user