Issue #2960 - added checks for SashForm weights

Former-commit-id: 3018ff1f5f [formerly 1a3c0743b773f695fa881f83a9773a899a2ef111]
Former-commit-id: 19dd95ba24
This commit is contained in:
Lee Venable 2014-03-28 15:30:11 -05:00
parent bd3e4659fb
commit bdb18ea85b

View file

@ -109,6 +109,8 @@ import com.raytheon.viz.ui.views.CaveWorkbenchPageManager;
* Mar 06, 2014 2751 bclement moved users table refresh logic to refreshParticipantList()
* Mar 06, 2014 2848 bclement get venueName directly from session
* Mar 11, 2014 #2865 lvenable Added null checks in threads
* Mar 28, 2014 #2960 lvenable Added check to make sure the SashForm is not getting
* negative weights - set to zero if negative.
*
* </pre>
*
@ -331,6 +333,15 @@ public class SessionView extends AbstractSessionView<VenueParticipant>
participantsLabel
.setToolTipText("Select to hide participants...");
}
// If the weight value is negative then make it zero since it
// cannot have a negative number.
for (int i = 0; i < weights.length; i++) {
if (weights[i] < 0) {
weights[i] = 0;
}
}
((SashForm) parent).setWeights(weights);
parent.layout();
}