diff options
author | dgp <dgp@users.sourceforge.net> | 2005-12-01 18:31:42 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-12-01 18:31:42 (GMT) |
commit | 277158cf072d9b7124bc4fb69806afac0a0b998c (patch) | |
tree | b33e795f5a24dae1e091df33e8219c946033da84 /macosx | |
parent | f68d0a0e2f46385c06b1a65863da5d99e42c1abb (diff) | |
download | tk-277158cf072d9b7124bc4fb69806afac0a0b998c.zip tk-277158cf072d9b7124bc4fb69806afac0a0b998c.tar.gz tk-277158cf072d9b7124bc4fb69806afac0a0b998c.tar.bz2 |
2005-11-16 Don Porter <dgp@users.sourceforge.net>
*** 8.4.12 TAGGED FOR RELEASE ***
* changes: Update changes for 8.4.12 release
* mac/tkMacWm.c: Restored consistent error checking and
* macosx/tkMacOSXWm.c: messages among different platform's
* tests/wm.test: [wm grid] commands. [Bug 1323972].
* win/tkWinWm.c:
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 48cc210..73a9839 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.14 2005/11/27 02:36:46 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.15 2005/12/01 18:31:43 dgp Exp $ */ #include <Carbon/Carbon.h> @@ -1474,12 +1474,12 @@ Tcl_Obj *CONST objv[]; /* Argument objects. */ Tcl_SetResult(interp, "baseHeight can't be < 0", TCL_STATIC); return TCL_ERROR; } - if (widthInc < 0) { - Tcl_SetResult(interp, "widthInc can't be < 0", TCL_STATIC); + if (widthInc <= 0) { + Tcl_SetResult(interp, "widthInc can't be <= 0", TCL_STATIC); return TCL_ERROR; } - if (heightInc < 0) { - Tcl_SetResult(interp, "heightInc can't be < 0", TCL_STATIC); + if (heightInc <= 0) { + Tcl_SetResult(interp, "heightInc can't be <= 0", TCL_STATIC); return TCL_ERROR; } Tk_SetGrid((Tk_Window) winPtr, reqWidth, reqHeight, widthInc, |