Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Dec 19, 2024
1 parent a3f9dd8 commit be7d25b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit be7d25b

Please sign in to comment.