Ticket #104 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Polyline getData() sometimes breaks when filled box is checked

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


visad.FieldException: setSamples: bad array length
        at visad.FlatField.setSamples(FlatField.java:931)
        at visad.FlatField.setSamples(FlatField.java:674)
        at loci.visbio.overlays.OverlayNodedObject.getData(OverlayNodedObject.java:270)

I seem only able to produce this error when the polyline is closed. In this case, the first and last nodes share the same coordinates. Otherwise, the fill feature works fine.

Change History

comment:1 Changed 13 years ago by sorber

DelaunayCustom.fillCheck(), called if a polyline/freeform is closed, may alter the length of the SampledSet returned by getData(). Changed rangeSamples initializer to check the length of this set.

comment:2 Changed 13 years ago by sorber

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.