Ticket #357 (closed feature: duplicate)

Opened 7 years ago

Last modified 6 years ago

Grid.shiftRow() - row.length != modelRow.length

Reported by: jdege@… Owned by:
Priority: major Milestone: 2.3 Release
Component: Layer Version:
Keywords: Cc:
State:

Description

In the function shiftRow(), in Grid.js, I've seen unknown object errors, because the row[] array had one fewer elements than the modelRow[] array.

In the latest instance, prepend = true, modelRowIndex = 0, modelRow.length = 7, row.length = 6.

In the loop, i ranges from 0 to modelRow.length. For the last iteration, i = 6, and row[i] is undefined.

For some reason, every once in a great while, this.grid[0] is an array with one more element than this.grid.pop() is returning.

The result is an unknown object error.

Change History

Changed 7 years ago by euzuro

  • component changed from general to Layer

Changed 6 years ago by crschmidt

  • status changed from new to closed
  • resolution set to duplicate

The recently applied patch for #449 should solve this problem. If it does not, please reopen this ticket.

Changed 6 years ago by crschmidt

  • milestone set to 2.3 Release
Note: See TracTickets for help on using tickets.