From 7f2136f2a24ae1dca0d6ae30e8451db0d030dd06 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 2 Dec 2008 10:53:45 +0000
Subject: [PATCH] fix win32 crash

---
 Fltk/GUI.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp
index bb11093cf5..c098616c6a 100644
--- a/Fltk/GUI.cpp
+++ b/Fltk/GUI.cpp
@@ -42,6 +42,7 @@ extern Context_T CTX;
 
 static int globalShortcut(int event)
 {
+  if(!GUI::available()) return 0;
   return GUI::instance()->testGlobalShortcuts(event);
 }
 
-- 
GitLab