From 2a11e8f4a16d65172227b7b086ccabf6ad249562 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 3 Apr 2020 15:16:06 +0200 Subject: [PATCH] #5696 WBS: Fix check for element properties when creating options source list. An off-by-one error in the time step when checking if a element property table has any values would lead to the "Propery Table" option not being shown in the UI for the default time step (i.e 0). This makes it possible to select UCS and POISSON_RATIO as element properties. --- ApplicationCode/ProjectDataModel/RimWbsParameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp b/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp index c7762df9f4..6a277896c3 100644 --- a/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp +++ b/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp @@ -433,7 +433,7 @@ bool RimWbsParameters::hasLasFileWithChannel( const QString& channel ) const bool RimWbsParameters::hasElementPropertyEntry( const RigFemResultAddress& resAddr ) const { RigFemPartResultsCollection* femPartResults = nullptr; - if ( m_geoMechCase && m_geoMechCase->geoMechData() && m_timeStep > 0 ) + if ( m_geoMechCase && m_geoMechCase->geoMechData() && m_timeStep() >= 0 ) { femPartResults = m_geoMechCase->geoMechData()->femPartResults(); if ( femPartResults )