diff options
author | fvogel <fvogelnew1@free.fr> | 2024-05-05 21:35:03 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-05-05 21:35:03 (GMT) |
commit | 4a1ea025842883245014d58ce4786564089dce3b (patch) | |
tree | 50c8e26b9c813f6f8818e017fcd44b1b5fbbec11 /generic | |
parent | 74b174eed61acafb5e8bc26bfe8d8d33fcadd7aa (diff) | |
download | tk-4a1ea025842883245014d58ce4786564089dce3b.zip tk-4a1ea025842883245014d58ce4786564089dce3b.tar.gz tk-4a1ea025842883245014d58ce4786564089dce3b.tar.bz2 |
Fix [bb52855781]: ttk treeview tests not robust against display scaling.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/ttk/ttkTreeview.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c index 5880a49..5855d24 100644 --- a/generic/ttk/ttkTreeview.c +++ b/generic/ttk/ttkTreeview.c @@ -2775,8 +2775,8 @@ static int TreeviewHorribleIdentify( /* ASSERT: objc == 4 */ - if (Tcl_GetIntFromObj(interp, objv[2], &x) != TCL_OK - || Tcl_GetIntFromObj(interp, objv[3], &y) != TCL_OK) { + if (Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[2], &x) != TCL_OK + || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[3], &y) != TCL_OK) { return TCL_ERROR; } @@ -2865,8 +2865,8 @@ static int TreeviewIdentifyCommand( if (Tcl_GetIndexFromObjStruct(interp, objv[2], submethodStrings, sizeof(char *), "command", TCL_EXACT, &submethod) != TCL_OK - || Tcl_GetIntFromObj(interp, objv[3], &x) != TCL_OK - || Tcl_GetIntFromObj(interp, objv[4], &y) != TCL_OK + || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[3], &x) != TCL_OK + || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[4], &y) != TCL_OK ) { return TCL_ERROR; } |