Refactor: Make a copy of histogram data.

This commit is contained in:
Kristian Bendiksen
2021-05-03 10:16:25 +02:00
parent 01d88030d4
commit 359df8360e
7 changed files with 26 additions and 28 deletions

View File

@@ -207,7 +207,7 @@ void RimStatisticsPlot::updatePlots()
QBarSet* set0 = new QBarSet( m_plotWindowTitle );
double minValue = std::numeric_limits<double>::max();
double maxValue = -std::numeric_limits<double>::max();
for ( double value : *histogramData.histogram )
for ( double value : histogramData.histogram )
{
*set0 << value;
minValue = std::min( minValue, value );