Open ocornut opened 2 years ago
I believe the suggested fix is fine, as the 0 case should mean there will be no further use of dy anyway.
I've fixed this locally, but I don't know when the next release will be.
Thank you Sean. (I've pushed the same fix on our own copy too now).
Describe the bug Apparently there's a division by zero in
stbtt__fill_active_edges_new()
on that line:See: https://github.com/ocornut/imgui/issues/5139
To Reproduce I am sorry I do not have a repro yet. This was reported by @mgerhardy and I am waiting on their answer. I tried loading a few fonts with an extra assert and it didn't trigger for me.
Martin proposed fix is https://github.com/mgerhardy/vengi/commit/a337ecaeb5ae47cfcc462d8f91a38199a41fa199 but I haven't looked at the code so know if it makes sense.