mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix signed/unsigned compare
This commit is contained in:
@@ -184,7 +184,7 @@ void RicSummaryPlotTemplateTools::appendSummaryPlotToPlotCollection(
|
|||||||
|
|
||||||
maximumIndexValue = std::max( maximumIndexValue, indexValue );
|
maximumIndexValue = std::max( maximumIndexValue, indexValue );
|
||||||
|
|
||||||
if ( conversionOk && indexValue < selectedEnsembles.size() )
|
if ( conversionOk && indexValue < static_cast<int>( selectedEnsembles.size() ) )
|
||||||
{
|
{
|
||||||
auto summaryCaseY = selectedEnsembles[indexValue];
|
auto summaryCaseY = selectedEnsembles[indexValue];
|
||||||
curveSet->setSummaryCaseCollection( summaryCaseY );
|
curveSet->setSummaryCaseCollection( summaryCaseY );
|
||||||
|
|||||||
@@ -308,9 +308,9 @@ void RiuQwtPlotCurve::drawSymbols( QPainter* painter,
|
|||||||
|
|
||||||
if ( sym )
|
if ( sym )
|
||||||
{
|
{
|
||||||
if ( m_perPointLabels.size() == pointsToDisplay.size() )
|
if ( m_perPointLabels.size() == static_cast<size_t>( pointsToDisplay.size() ) )
|
||||||
{
|
{
|
||||||
for ( int i = 0; i < (int)pointsToDisplay.size(); ++i )
|
for ( int i = 0; i < pointsToDisplay.size(); ++i )
|
||||||
{
|
{
|
||||||
sym->renderSymbolLabel( painter, pointsToDisplay[i], m_perPointLabels[i] );
|
sym->renderSymbolLabel( painter, pointsToDisplay[i], m_perPointLabels[i] );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user