From 56501f7f6d71390871380903b8e2e20d47ef8976 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 16 Jun 2023 15:43:49 +0200 Subject: [PATCH] Avoid display of first degree of x --- .../Summary/RimSummaryRegressionAnalysisCurve.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryRegressionAnalysisCurve.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryRegressionAnalysisCurve.cpp index f222cd2381..e5ebac0187 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryRegressionAnalysisCurve.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryRegressionAnalysisCurve.cpp @@ -409,6 +409,10 @@ QString RimSummaryRegressionAnalysisCurve::generateRegressionText( const regress { parts.append( QString( "%1" ).arg( formatDouble( std::fabs( coeff ) ) ) ); } + else if ( i == 1 ) + { + parts.append( QString( "%1x" ).arg( formatDouble( std::fabs( coeff ) ) ) ); + } else { parts.append( QString( " %1x%2" ).arg( formatDouble( std::fabs( coeff ) ) ).arg( i ) );