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:
parent
6a5e9401f7
commit
214504a20e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user