Mercurial > projects > dwt-addons
diff dwtx/ui/forms/widgets/FormText.d @ 85:56fea7e5f0f9
Fix some runtime errors
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 20 Jun 2008 14:48:17 +0200 |
parents | 5d489b9f966c |
children | 04b47443bb01 |
line wrap: on
line diff
--- a/dwtx/ui/forms/widgets/FormText.d Fri Jun 20 13:00:15 2008 +0200 +++ b/dwtx/ui/forms/widgets/FormText.d Fri Jun 20 14:48:17 2008 +0200 @@ -1552,7 +1552,7 @@ } private void ensureBoldFontPresent(Font regularFont) { - Font boldFont = cast(Font) resourceTable.get(FormTextModel.BOLD_FONT_ID); + Font boldFont = resourceTable.containsKey(FormTextModel.BOLD_FONT_ID) ? cast(Font) resourceTable.get(FormTextModel.BOLD_FONT_ID) : null; if (boldFont !is null) return; boldFont = FormFonts.getInstance().getBoldFont(getDisplay(), regularFont);