mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user