Skip to content

Commit

Permalink
Fix EndPlot() not deducing auto color for ImPlotCol_PlotBorder (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
elvissteinjr authored Sep 26, 2023
1 parent 22ef01e commit 065acc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,7 @@ void EndPlot() {

// FINAL RENDER -----------------------------------------------------------

const bool render_border = gp.Style.PlotBorderSize > 0 && gp.Style.Colors[ImPlotCol_PlotBorder].w > 0;
const bool render_border = gp.Style.PlotBorderSize > 0 && GetStyleColorVec4(ImPlotCol_PlotBorder).w > 0;
const bool any_x_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_X1], IMPLOT_NUM_X_AXES);
const bool any_y_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_Y1], IMPLOT_NUM_Y_AXES);

Expand Down

0 comments on commit 065acc3

Please sign in to comment.