mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
#3994 Fix crash when creating valves and no valve template is present
This commit is contained in:
parent
80c99f452f
commit
64c30d00d1
@ -224,6 +224,13 @@ void caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingIn
|
||||
// Apply margins determined by the editor type
|
||||
fieldLabelWidget->setContentsMargins(fieldEditor->labelContentMargins());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fieldColumnSpan == PdmUiOrdering::LayoutOptions::MAX_COLUMN_SPAN)
|
||||
{
|
||||
fieldColumnSpan = itemColumnSpan;
|
||||
}
|
||||
}
|
||||
fieldEditorWidget->setParent(containerWidgetWithGridLayout); // To make sure this widget has the current group box as parent.
|
||||
parentLayout->addWidget(fieldEditorWidget, currentRowIndex, currentColumn + leftLabelColumnSpan, 1, fieldColumnSpan, Qt::AlignTop);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user