NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #146 (closed defect: fixed)

Opened 2007-06-18T15:03:06-05:00

Last modified 2007-06-26T17:50:25-05:00

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:

Description

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 2007-06-18T16:25:12-05:00 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 2007-06-26T17:50:25-05:00 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.