From 214504a20ed3a457af4288bf2101bbea98e5fa67 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 15 Aug 2020 21:00:51 -0700 Subject: [PATCH] Fix yaxis setting updates not working The new values were being stored in PreviousFlags instead of Flags. --- implot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/implot.cpp b/implot.cpp index fc344cb..4ce1d71 100644 --- a/implot.cpp +++ b/implot.cpp @@ -852,11 +852,11 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons if (flags != plot.PreviousFlags) plot.Flags = flags; if (y_flags != plot.YAxis[0].PreviousFlags) - plot.YAxis[0].PreviousFlags = y_flags; + plot.YAxis[0].Flags = y_flags; if (y2_flags != plot.YAxis[1].PreviousFlags) - plot.YAxis[1].PreviousFlags = y2_flags; + plot.YAxis[1].Flags = y2_flags; if (y3_flags != plot.YAxis[2].PreviousFlags) - plot.YAxis[2].PreviousFlags = y3_flags; + plot.YAxis[2].Flags = y3_flags; } plot.PreviousFlags = flags;