Merge "Omaha #3323 fixed collaboration disposed font issue" into omaha_14.4.1

Former-commit-id: f4cdd661fe [formerly bcffac8875 [formerly 706409b459] [formerly f4cdd661fe [formerly f81ae068eca41eeae5d785668f4c1d7cf59ae9df]]]
Former-commit-id: bcffac8875 [formerly 706409b459]
Former-commit-id: bcffac8875
Former-commit-id: 5a74a3cf99
This commit is contained in:
Richard Peter 2014-06-27 16:52:39 -05:00 committed by Gerrit Code Review
commit 7bae4ec8c0

View file

@ -92,6 +92,7 @@ import com.raytheon.viz.ui.views.CaveFloatingView;
* running in an asynchronous thread.
* Mar 11, 2014 #2865 lvenable Added null checks for msgArchive.
* Jun 20, 2014 3281 bclement made sendErrorMessage() public
* Jun 27, 2014 3323 bclement fixed disposed font issue
* </pre>
*
* @author rferrel
@ -572,11 +573,12 @@ public abstract class AbstractSessionView<T extends IUser> extends
@Subscribe
public void changeFont(FontData data) {
if (messagesTextFont != null) {
messagesTextFont.dispose();
}
Font oldFont = messagesTextFont;
messagesTextFont = new Font(Display.getCurrent(), data);
messagesText.setFont(messagesTextFont);
if (oldFont != null) {
oldFont.dispose();
}
}
public void setAlertWords(List<AlertWord> words) {