epezent / implot

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

Prevent negative resolution being passed to Locator #458

Closed torkleyy closed 1 year ago

torkleyy commented 1 year ago

Fixes #457

Not sure if this is the best way to fix the bug, but it solved the freezing for my application.

epezent commented 1 year ago

1) curious what circumstances got you to a zero width plot 2) probably need to do the same for y-axis locators in the block just above this one

epezent commented 1 year ago

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