summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_font_win32.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_font_win32.cxx b/src/fl_font_win32.cxx
index aaab32a1e..13b361e83 100644
--- a/src/fl_font_win32.cxx
+++ b/src/fl_font_win32.cxx
@@ -155,7 +155,7 @@ double fl_width(uchar c) {
void fl_draw(const char* str, int n, int x, int y) {
COLORREF oldColor = SetTextColor(fl_gc, fl_RGB());
- SelectObject(fl_gc, fl_fontsize->fid);
+ if (fl_fontsize) SelectObject(fl_gc, fl_fontsize->fid);
TextOut(fl_gc, x, y, str, n);
SetTextColor(fl_gc, oldColor);
}