#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.
This commit is contained in:
Kristian Bendiksen 2020-04-03 15:16:06 +02:00 committed by Gaute Lindkvist
parent 72d878fb8b
commit 2a11e8f4a1

View File

@ -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 )