From be7d25b640f858d71536f0dd4b89f4a6305cb3fb Mon Sep 17 00:00:00 2001 From: Jon Jenssen Date: Thu, 19 Dec 2024 18:52:45 +0100 Subject: [PATCH] Build fix --- .../ProjectDataModel/RimStatisticsContourMapView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimStatisticsContourMapView.cpp b/ApplicationLibCode/ProjectDataModel/RimStatisticsContourMapView.cpp index 11c591aa3c..26bc40683c 100644 --- a/ApplicationLibCode/ProjectDataModel/RimStatisticsContourMapView.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimStatisticsContourMapView.cpp @@ -219,7 +219,7 @@ void RimStatisticsContourMapView::onClampCurrentTimestep() if ( statisticsContourMap() ) { auto maxSteps = statisticsContourMap()->selectedTimeSteps().size(); - if ( m_currentTimeStep() >= maxSteps ) + if ( m_currentTimeStep() >= (int)maxSteps ) { m_currentTimeStep = maxSteps - 1; } @@ -249,7 +249,7 @@ QString RimStatisticsContourMapView::timeStepName( int frameIdx ) const if ( !statisticsContourMap() ) return ""; auto steps = statisticsContourMap()->selectedTimeSteps(); - if ( frameIdx >= steps.size() ) return ""; + if ( frameIdx >= (int)steps.size() ) return ""; auto realTimeStep = steps[frameIdx]; return statisticsContourMap()->timeStepName( realTimeStep ); }