When removing a child shape from a CompoundShape, RemoveChildShapeByIndex uses
ObjectArray.RemoveAtQuick to replace the node by putting the last one in its
place.
RemoveChildByShapeIndex will then update the newly placed node's dataAsInt
value.
All this works fine, except for the case where we removed the last node, since
in this case, no new node took its place and we end up trying to update a null
object's dataAsInt value.
The (straightforward) patch to fix this is attached.
Original issue reported on code.google.com by elise...@gmail.com on 23 Aug 2013 at 1:57
Original issue reported on code.google.com by
elise...@gmail.com
on 23 Aug 2013 at 1:57Attachments: