From 0fbe00da0de13d4ee959373517af634d55a20fe4 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Sat, 11 Jan 2020 16:48:36 +0000 Subject: [PATCH] gnuplot path search fix --- lib/Core/Plot.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Core/Plot.cpp b/lib/Core/Plot.cpp index a79fa4e..edc65ce 100644 --- a/lib/Core/Plot.cpp +++ b/lib/Core/Plot.cpp @@ -584,10 +584,7 @@ Plot & Plot::operator<<(PlotModifier &&modifier) sprintf(buf, "%s/%s", dir, gnuplotBin_.c_str());\ if (access(buf, X_OK) == 0)\ {\ - sprintf(buf,".");\ - gnuplotPath_ = buf;\ - \ - return gnuplotPath_;\ + return dir;\ } std::string Plot::getProgramPath(void)