From fe552f25f0bf95d182177d3746ad2dc66d27ec26 Mon Sep 17 00:00:00 2001 From: epezent Date: Fri, 4 Sep 2020 13:36:56 -0500 Subject: [PATCH] make time override log --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index 123b17d..bb46994 100644 --- a/implot.cpp +++ b/implot.cpp @@ -919,7 +919,7 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons if (gp.RenderX && gp.NextPlotData.ShowDefaultTicksX) { if (gp.X.IsTime) AddTicksTime(plot.XAxis.Range, plot_width, gp.XTicks); - if (ImHasFlag(plot.XAxis.Flags, ImPlotAxisFlags_LogScale)) + else if (ImHasFlag(plot.XAxis.Flags, ImPlotAxisFlags_LogScale)) AddTicksLogarithmic(plot.XAxis.Range, (int)IM_ROUND(plot_width * 0.01f), gp.XTicks); else AddTicksDefault(plot.XAxis.Range, ImMax(2, (int)IM_ROUND(0.0025 * plot_width)), IMPLOT_SUB_DIV, gp.XTicks);