Ticket #146 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Prevent ONOs from containing consecutive colocational nodes

Reported by: sorber Owned by: sorber
Priority: critical Milestone:
Component: visbio Severity:
Keywords: overlays Cc:
Blocked By: Blocking:


Occasionally I've accidentally created polylines with two colocational nodes using the Wacom pen. Why not add a simple check to prevent ONOs from writing new nodes with the same coordinate as the last node? These cases just break the object's getData() and OverlayUtil's getSelectionLayer() methods anyway.

Change History

comment:1 Changed 13 years ago by sorber

This task is more difficult than it might seem. For one, it is possible to create consecutive colocational nodes by a delete operation. Guarding against this requires a pruning operation.

comment:2 Changed 13 years ago by sorber

  • Status changed from new to closed
  • Resolution set to fixed

Prevented consecutive colocational nodes in set, insert, delete, and connect methods in OverlayNodedObject. This should ensure that consecutive colocational nodes do not arise and prevent the need for a pruning operation.

Note: See TracTickets for help on using tickets.