Ticket #1670 (closed bug: fixed)
maxZIndex becomes NULL when the last feature is removed
| Reported by: | pvalsecc | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.7 Release |
| Component: | Renderer.Elements | Version: | 2.6 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
If you insert features in a Vector layer, remove all of them and re-insert some, you'll get some bad behaviors and memory leaks.
Everything happens in the OpenLayers.ElementsIndexer class. After you remove the last feature, all the features inserted without z-order have a null z-order and are never removed from the indices and order structures. And the sorting of the features is broken.
See the patch in attachment.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

