mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 06:06:35 +00:00
Plot() function can take 0.0f for both scale_min/scale_max to calculate scale
This commit is contained in:
parent
b67593a4b1
commit
d10d0343b2
@ -6547,7 +6547,7 @@ static void Plot(ImGuiPlotType plot_type, const char* label, float (*values_gett
|
||||
return;
|
||||
|
||||
// Determine scale from values if not specified
|
||||
if (scale_min == FLT_MAX || scale_max == FLT_MAX)
|
||||
if (scale_min == FLT_MAX || scale_max == FLT_MAX || (scale_min == 0.0f && scale_max == 0.0f))
|
||||
{
|
||||
float v_min = FLT_MAX;
|
||||
float v_max = -FLT_MAX;
|
||||
|
Loading…
Reference in New Issue
Block a user