From 8c125ccd6b7c85291f63f30882f6cc5e01508610 Mon Sep 17 00:00:00 2001 From: epezent Date: Wed, 19 Aug 2020 11:43:00 -0500 Subject: [PATCH] small fix to query --- implot.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/implot.cpp b/implot.cpp index d09ce26..3ed29b6 100644 --- a/implot.cpp +++ b/implot.cpp @@ -965,6 +965,11 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons plot.Queried = false; plot.QueryRect = ImRect(0,0,0,0); } + if (!ImHasFlag(plot.Flags, ImPlotFlags_Query)) { + plot.Queried = false; + plot.Querying = false; + plot.QueryRect = ImRect(0,0,0,0); + } // DOUBLE CLICK -----------------------------------------------------------