Issue #1847 Allow painting with no Wind Data.

Change-Id: I01ff02602d46702395b3443567f0b82adab6d59c

Former-commit-id: c653b26b26 [formerly dcf4c3cb6e] [formerly 52845da6a8] [formerly 7b96ccbf0e [formerly 52845da6a8 [formerly c4eec589218d1c1265fd596646abd9dc2322fd74]]]
Former-commit-id: 7b96ccbf0e
Former-commit-id: 546c5fb066a2d3d0a153a33b16e7c62eb38a297e [formerly 5b151d48e2]
Former-commit-id: 5f1fcac916
This commit is contained in:
Ben Steffensmeier 2013-05-08 12:32:03 -05:00
parent 6fc9283ead
commit b871b71dfa

View file

@ -10,6 +10,7 @@ package gov.noaa.nws.ncep.ui.nsharp.display.rsc;
* Date Ticket# Engineer Description
* ------- ------- -------- -----------
* 04/23/2012 229 Chin Chen Initial coding
* May 08, 2013 1847 bsteffen Allow painting with no Wind Data.
*
* </pre>
*
@ -798,6 +799,9 @@ public class NsharpSkewTPaneResource extends NsharpAbstractPaneResource{
//System.out.println( "layer#"+ i+ " RE_MAX_WIND =" + spd );
}
}
if (layerStateList.isEmpty()) {
return;
}
//#2: apply minimum distance rule, i.e no two wind layer closer than the minimum distance, also make sure
// relative max wind layer is picked.
lastHeight = -9999;