Merge "Omaha #3323 fixed collaboration disposed font issue" into omaha_14.4.1
Former-commit-id:5a74a3cf99
[formerlybcffac8875
] [formerly706409b459
] [formerlyf4cdd661fe
[formerly706409b459
[formerly f81ae068eca41eeae5d785668f4c1d7cf59ae9df]]] Former-commit-id:f4cdd661fe
Former-commit-id: 9e7fc0b82ae20bc6493ceddb6809f83261c06966 [formerlye3c3d55883
] Former-commit-id:b94dc3b045
This commit is contained in:
commit
570bf42f89
1 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue