summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-25 18:36:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-25 18:36:35 (GMT)
commiteb3022398e2b2411ad867936890b21b10ee4869f (patch)
treeff80f936ef81b9838ad062419aa59dd0dace0a0d /macosx
parentb7fdd1e846050be4e23fa920bf275653f0ad2829 (diff)
parent48ab1488e7104ed9f9b90435951cf56e4ad3d2ed (diff)
downloadtk-eb3022398e2b2411ad867936890b21b10ee4869f.zip
tk-eb3022398e2b2411ad867936890b21b10ee4869f.tar.gz
tk-eb3022398e2b2411ad867936890b21b10ee4869f.tar.bz2
Merge 8.6
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXKeyEvent.c3
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;