mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#4388 AppFwk : Always mark field as used when editor is created
This commit is contained in:
1 parent
9e7467309d
commit
50ee79f6c3
1 file changed
+5
-3
@@ -183,9 +183,6 @@ int caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingInG
|
||||
|
||||
if (fieldEditor)
|
||||
{
|
||||
// Mark this field as used in the editor
|
||||
m_usedFields.insert(field->fieldHandle());
|
||||
|
||||
// Also assign required item space that isn't taken up by field and label
|
||||
spareColumnsToAssign += minimumItemColumnSpan - (minimumLabelColumnSpan + minimumFieldColumnSpan);
|
||||
|
||||
@@ -420,6 +417,11 @@ caf::PdmUiFieldEditorHandle* caf::PdmUiFormLayoutObjectEditor::findOrCreateField
|
||||
fieldEditor = it->second;
|
||||
}
|
||||
|
||||
if (fieldEditor)
|
||||
{
|
||||
m_usedFields.insert(field->fieldHandle());
|
||||
}
|
||||
|
||||
return fieldEditor;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user