Tk Source Code

View Ticket
Login
Ticket UUID: dd192d6f302cc2d68b1de6d5a1d2cdc0a67c0fc4
Title: Error in win/tkWinGDI.c
Type: Bug Version: 9.0b2
Submitter: cjmcdonald Created on: 2024-07-30 13:23:17
Subsystem: 68. Win Window Operations Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2024-07-30 20:07:02
Resolution: Fixed Closed By: fvogel
    Closed on: 2024-07-30 20:07:02
Description:

There is an error in the GdiOval function in win/tkWinGDI.c:

    if ((Tcl_GetIntFromObj(interp, objv[2], &x1) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[2], &y1) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[3], &x2) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[4], &y2) != TCL_OK)) {

should be:

    if ((Tcl_GetIntFromObj(interp, objv[2], &x1) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[3], &y1) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[4], &x2) != TCL_OK)
	    || (Tcl_GetIntFromObj(interp, objv[5], &y2) != TCL_OK)) {

Introduced in [0a5475bfdbb600c8]

User Comments: fvogel added on 2024-07-30 20:07:02:

Indeed.

Now committed in [e9b25413c5], thanks!