STR 2101: Temporary fix to prevent crash. Also corrected code indentation.

ToDo: The correct fix would need more code changes and is under investigation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser
2008-12-05 13:48:26 +00:00
parent 60335167b2
commit abfba16040
+6
View File
@@ -232,6 +232,12 @@ void fl_set_spot(int font, int size, int x, int y, int w, int h)
if (himc) {
Fl_Window* w = fl_find(fl_msg.hwnd);
// FIXME: the following is a temporary fix for STR #2101
if (!w) {
flImmReleaseContext(fl_msg.hwnd, himc);
return;
}
while (w->parent()) w = w->window();
COMPOSITIONFORM cfs;