vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
35 stars 14 forks source link

`TableGetSortSpecs` throws an Error, when Table hasn't Sortable Flag. #25

Closed antongit closed 1 year ago

antongit commented 1 year ago

The Idea from @azeno was, that the Table should write to the Context if it has the Sortable Flag set and the TableGetSortSpecs should check it first.

Testpatch: Imgui_TableGetSortSpecs_Error.zip

azeno commented 1 year ago

Fix was straight forward, simply doing a null check. The above commit also adds a missing forward for the specs and ensures the output spread doesn't change as long as the specs don't change.