Problem found (not the solution ). I enclose you a super simple test case.
GridCtrlDragtest::GridCtrlDragtest()
{
CtrlLayout(*this, "Window title");
grid.ResizeColMode(0);
grid.Inserting().Appending().Removing().Editing().Duplicating().Clipboard().SetToolBar()
.EvenColor().MovingRows(1).Dragging().DrawFocus().ColoringMode(2)
.SetCursor(0);
grid.AddColumn("First");
grid.AddColumn("Second");
grid.Clear(); // Problem appears if this line is set
grid.Add("Hello", "World");
grid.Add("Hello2", "World2");
}
GUI_APP_MAIN
{
GridCtrlDragtest().Run();
}
When dragging second line before first line it says "Moving row 2 before row 0". It should have to say "row 1". After that the exception appears. If I remove the Clear(), everything works perfect.
unodgs Messages: 1366 Registered: November 2005 Location: Poland
Ultimate Contributor
Thank you for a great testcase! Bug hopefully fixed The only thing I worry about is if that fix didn't break some other corner cases... but we will see