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

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

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) {