1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00

small fix to query

This commit is contained in:
epezent 2020-08-19 11:43:00 -05:00
parent c1daaab8ea
commit 8c125ccd6b

View File

@ -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 -----------------------------------------------------------