Issue #2164 - fix Windows build of CAVE
Former-commit-id: 2947f7d48845927b809bba76f05c5feaea0a9104
This commit is contained in:
parent
64998e3f1b
commit
d573869ffb
1 changed files with 8 additions and 4 deletions
|
@ -56,6 +56,9 @@ import com.raytheon.viz.aviation.resource.ResourceConfigMgr.ResourceTag;
|
|||
* foreground color
|
||||
* 16 Aug 2013 #2256 lvenable Fixed font array out of bounds issue that may
|
||||
* occasionally occur.
|
||||
* 30 Aug 2013 #2164 bkowal Add default case statement for MSFT Windows
|
||||
* Java. Replaced platform-dependent code with
|
||||
* code that is not platform-dependent.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -324,8 +327,8 @@ public class ResourceDataManager {
|
|||
*/
|
||||
if (stringArray == null || stringArray.length < 3) {
|
||||
FontData fd = display.getSystemFont().getFontData()[0];
|
||||
defaultFont = new Font(display, new FontData(fd.name,
|
||||
(int) fd.height, fd.style));
|
||||
defaultFont = new Font(display, new FontData(fd.getName(),
|
||||
fd.getHeight(), fd.getStyle()));
|
||||
} else {
|
||||
defaultFont = new Font(display, new FontData(stringArray[0],
|
||||
Integer.valueOf(stringArray[1]),
|
||||
|
@ -838,9 +841,10 @@ public class ResourceDataManager {
|
|||
|
||||
case EntryFont:
|
||||
return entryFont;
|
||||
}
|
||||
|
||||
return null;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public Color getAlertLevel0Color() {
|
||||
|
|
Loading…
Add table
Reference in a new issue