Omaha #3323 fixed collaboration disposed font issue
Change-Id: I89fda01efad46299a08b3067edc3f16a812a31c2 Former-commit-id:bba2d9cd9f
[formerlyc2cd991296
] [formerly023d1bde0b
] [formerly023d1bde0b
[formerlydc7a76197d
]] [formerlyfe149faffa
[formerly023d1bde0b
[formerlydc7a76197d
] [formerlyfe149faffa
[formerly e216af49d135ceeff5e6cd251c6742602230553c]]]] Former-commit-id:fe149faffa
Former-commit-id: fe73953f7ef19b29957a4c927e17ac49e9f4f631 [formerly 54898f3b2d36260900cf96d8c93cda806a155e01] [formerlyb8dc75d192
[formerlycb108f12b8
]] Former-commit-id:b8dc75d192
Former-commit-id:6bae8b556c
This commit is contained in:
parent
5da2166f19
commit
680b20fa66
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