diff --git a/ApplicationLibCode/ProjectDataModel/RimCustomObjectiveFunctionWeight.cpp b/ApplicationLibCode/ProjectDataModel/RimCustomObjectiveFunctionWeight.cpp index 6c4019944f..4d4d852a21 100644 --- a/ApplicationLibCode/ProjectDataModel/RimCustomObjectiveFunctionWeight.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimCustomObjectiveFunctionWeight.cpp @@ -75,7 +75,7 @@ QString RimCustomObjectiveFunctionWeight::title() const addressVector.push_back( address->address() ); } return QString( "%0 * %1::%2%3%4" ) - .arg( m_weightValue, 0, 'f', 2 ) + .arg( m_weightValue(), 0, 'f', 2 ) .arg( caf::AppEnum( m_objectiveFunction() ).text() ) .arg( addressVector.size() > 1 ? "(" : "" ) .arg( QString::fromStdString( RifEclipseSummaryAddress::generateStringFromAddresses( addressVector, " + " ) ) )