Skip to content
Permalink
Browse files
Fix #45771 identify inf bad alloc
  • Loading branch information
elpaso authored and nyalldawson committed Nov 3, 2021
1 parent 18d598b commit 19c503f048ce43889ba06527222ed6b91f582391
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsidentifyresultsdialog.cpp
@@ -844,7 +844,12 @@ QgsIdentifyPlotCurve::QgsIdentifyPlotCurve( const QMap<QString, QString> &attrib
for ( QMap<QString, QString>::const_iterator it = attributes.begin();
it != attributes.end(); ++it )
{
myData << QPointF( double( i++ ), it.value().toDouble() );
bool ok;
const double val {it.value().toDouble( &ok )};
if ( ok && std::isfinite( val ) )
{
myData << QPointF( double( i++ ), val );
}
}
mPlotCurve->setSamples( myData );

0 comments on commit 19c503f

Please sign in to comment.