1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-26 12:18:52 -05:00

Fix yaxis setting updates not working

The new values were being stored in PreviousFlags instead of Flags.
This commit is contained in:
Peter Johnson 2020-08-15 21:00:51 -07:00
parent 6a5e9401f7
commit 214504a20e
No known key found for this signature in database
GPG Key ID: D39DD4DA7D41E329

View File

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