mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2140 Set fracture color variable when result name is empty or "None"
This commit is contained in:
@@ -387,7 +387,9 @@ void setDefaultResultIfStimPlan(caf::PdmField<QString> &field)
|
|||||||
|
|
||||||
std::vector<RimFractureTemplate*> stimPlanFracTemplates = proj->allFractureTemplates();
|
std::vector<RimFractureTemplate*> stimPlanFracTemplates = proj->allFractureTemplates();
|
||||||
|
|
||||||
if (!stimPlanFracTemplates.empty() && field() == "None")
|
QString currentResultName = field();
|
||||||
|
|
||||||
|
if (!stimPlanFracTemplates.empty() && (currentResultName.isEmpty() || currentResultName == "None"))
|
||||||
{
|
{
|
||||||
RimFractureTemplateCollection* templColl = proj->allFractureTemplateCollections().front();
|
RimFractureTemplateCollection* templColl = proj->allFractureTemplateCollections().front();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user