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)