Skip to content

Commit 065acc3

Browse files
authored
Fix EndPlot() not deducing auto color for ImPlotCol_PlotBorder (epezent#517)
1 parent 22ef01e commit 065acc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ void EndPlot() {
27782778

27792779
// FINAL RENDER -----------------------------------------------------------
27802780

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

0 commit comments

Comments
 (0)