1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-23 02:38:53 -05:00

Merge pull request #90 from PeterJohnson/fix-yaxis-settings

Fix yaxis setting updates not working
This commit is contained in:
Evan Pezent 2020-08-15 23:22:47 -05:00 committed by GitHub
commit 0969a8df83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;