summaryrefslogtreecommitdiffstats
path: root/mac/tkMacWm.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-12-01 18:31:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-12-01 18:31:42 (GMT)
commit277158cf072d9b7124bc4fb69806afac0a0b998c (patch)
treeb33e795f5a24dae1e091df33e8219c946033da84 /mac/tkMacWm.c
parentf68d0a0e2f46385c06b1a65863da5d99e42c1abb (diff)
downloadtk-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 'mac/tkMacWm.c')
-rw-r--r--mac/tkMacWm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mac/tkMacWm.c b/mac/tkMacWm.c
index d313633..17dd539 100644
--- a/mac/tkMacWm.c
+++ b/mac/tkMacWm.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacWm.c,v 1.24 2003/02/09 07:51:04 hobbs Exp $
+ * RCS: @(#) $Id: tkMacWm.c,v 1.24.2.1 2005/12/01 18:31:43 dgp Exp $
*/
#include <Gestalt.h>
@@ -1512,12 +1512,12 @@ WmGridCmd(tkwin, winPtr, interp, objc, objv)
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,