Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a950e9
)
0020948: EDF 1468 SMESH: Histogram of the quality controls
author
eap
<eap@opencascade.com>
Tue, 12 Oct 2010 11:39:30 +0000
(11:39 +0000)
committer
eap
<eap@opencascade.com>
Tue, 12 Oct 2010 11:39:30 +0000
(11:39 +0000)
fix GetHistogram(), case of 1 value
src/Controls/SMESH_Controls.cxx
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index 8e943469cbc237f7f9bcae60dcff62711bb28de1..4b370e61b5f654f0e2b4583c419994d3dc68b789 100644
(file)
--- a/
src/Controls/SMESH_Controls.cxx
+++ b/
src/Controls/SMESH_Controls.cxx
@@
-314,9
+314,10
@@
void NumericalFunctor::GetHistogram(int nbIntervals,
// case of 1 value
if (funValues.front() == funValues.back())
{
- nbIntervals = 1;
- nbEvents.resize( nbIntervals, values.size() );
- funValues.resize( nbIntervals+1);
+ nbEvents.resize( 1 );
+ nbEvents[0] = values.size();
+ funValues[1] = funValues.back();
+ funValues.resize( 2 );
}
// generic case
std::multiset< double >::iterator min = values.begin(), max;