Issue #2960 - added checks for SashForm weights

Former-commit-id: bdb18ea85b [formerly 19dd95ba24] [formerly bdb18ea85b [formerly 19dd95ba24] [formerly 3018ff1f5f [formerly 1a3c0743b773f695fa881f83a9773a899a2ef111]]]
Former-commit-id: 3018ff1f5f
Former-commit-id: f7e1ee666b [formerly 1504b3532e]
Former-commit-id: 5bbb65637e
This commit is contained in:
Lee Venable 2014-03-28 15:30:11 -05:00
parent a257e762f3
commit d1928c95d9

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();
}