Ticket #104 (closed defect: fixed)
Opened 2007-04-10T16:34:45-05:00
Last modified 2007-05-01T16:25:56-05:00
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: |
Description
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.
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.