epezent / implot

Immediate Mode Plotting
MIT License
4.64k stars 516 forks source link

Resolution passed to ImPlotLocator can be negative #457

Closed torkleyy closed 1 year ago

torkleyy commented 1 year ago

This is causing my application to hang after minimizing. I think it was because the canvas rect was zero, so after subtracting the padding the plot_height would be negative.

epezent commented 1 year ago

https://github.com/epezent/implot/commit/b5b796a1d4031c445f61b4fb740d5171d8aa56fd