diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-25 18:36:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-25 18:36:35 (GMT) |
commit | eb3022398e2b2411ad867936890b21b10ee4869f (patch) | |
tree | ff80f936ef81b9838ad062419aa59dd0dace0a0d /macosx | |
parent | b7fdd1e846050be4e23fa920bf275653f0ad2829 (diff) | |
parent | 48ab1488e7104ed9f9b90435951cf56e4ad3d2ed (diff) | |
download | tk-eb3022398e2b2411ad867936890b21b10ee4869f.zip tk-eb3022398e2b2411ad867936890b21b10ee4869f.tar.gz tk-eb3022398e2b2411ad867936890b21b10ee4869f.tar.bz2 |
Merge 8.6
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXKeyEvent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c index d282427..c9449da 100644 --- a/macosx/tkMacOSXKeyEvent.c +++ b/macosx/tkMacOSXKeyEvent.c @@ -417,6 +417,9 @@ static NSUInteger textInputModifiers; replacementRange: (NSRange)repRange { TkWindow *winPtr = TkMacOSXGetTkWindow([self window]); + if (!winPtr) { + return; + } Tk_Window focusWin = (Tk_Window)winPtr->dispPtr->focusPtr; NSString *temp; NSString *str; |