Skip to content
Snippets Groups Projects
Commit c2ed5b0d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr use of close_enough

parent d22c5bd0
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ void NPlot::Plot( class CPlot *plot, bool add )
double yi = ( (xn[i+1]-xn[i])*yn[i-1] +
(xn[i]-xn[i-1])*yn[i+1] ) /
(xn[i+1]-xn[i-1]);
if ( plot->Y.close_enough( yn[i], yi, 0.005 ) ) {
if ( !plot->Y.close_enough( yn[i], yi, 0.005 ) ) {
xc.push_back( (xn[i-1] + xn[i])/2 );
//cout << "DEB disc " << xc.back() << "\n";
insert_next = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment