mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 15:40:37 +05:00
0020948: EDF 1468 SMESH: Histogram of the quality controls
fix GetHistogram(), case of 1 value
This commit is contained in:
parent
8a950e9b2e
commit
25b69822a1
@ -314,9 +314,10 @@ void NumericalFunctor::GetHistogram(int nbIntervals,
|
|||||||
// case of 1 value
|
// case of 1 value
|
||||||
if (funValues.front() == funValues.back())
|
if (funValues.front() == funValues.back())
|
||||||
{
|
{
|
||||||
nbIntervals = 1;
|
nbEvents.resize( 1 );
|
||||||
nbEvents.resize( nbIntervals, values.size() );
|
nbEvents[0] = values.size();
|
||||||
funValues.resize( nbIntervals+1);
|
funValues[1] = funValues.back();
|
||||||
|
funValues.resize( 2 );
|
||||||
}
|
}
|
||||||
// generic case
|
// generic case
|
||||||
std::multiset< double >::iterator min = values.begin(), max;
|
std::multiset< double >::iterator min = values.begin(), max;
|
||||||
|
Loading…
Reference in New Issue
Block a user