From c2ed5b0d69f17bdf5d2cfa0a65b2942000368da2 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (laptop)" <j.wuttke@fz-juelich.de>
Date: Tue, 27 Dec 2011 18:43:34 +0100
Subject: [PATCH] corr use of close_enough

---
 pub/src/plot.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pub/src/plot.cpp b/pub/src/plot.cpp
index 6921ceda..e6f5f927 100644
--- a/pub/src/plot.cpp
+++ b/pub/src/plot.cpp
@@ -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;
-- 
GitLab