Ticket #15035 (closed defect: fixed)
wxGrid infinite loop
| Reported by: | hackish | Owned by: | vadz |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | wxGrid | Version: | 2.9-svn |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Sorry I don't have the tools here to make a patch...
In grid.cpp line 6694
You have a loop like so:
do
{
line = oper.GetLineBefore(this, line);
}
while ( line >= 0 && oper.GetLineSize(this, line) == 0 );
When line becomes 0 you have an infinite loop.
The fix is simple:
while ( line > 0 && oper.GetLineSize(this, line) == 0 );
Change History
Note: See
TracTickets for help on using
tickets.
