andlabs / andlabs/libui

uiTableModelInsertRow() causes invalid rows to be accessed (on windows)

Open
#416 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
10.9k
Forks
612
PR merge metrics
No merged PRs in 30d

Description

If uiTableModelInsertRow() is called on an active uiTable, the table will then try to fetch one row more than what the model provides.
If the table already has a lot of content, the invalid fetch won't occur until you scroll right down to bring the last row into view.

Seems to be windows-specific.

example here:
https://github.com/bcampbell/libui/blob/destruc-table/examples/destruc-table/main.c

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.