summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorpeter.spjuth@gmail.com <pspjuth>2003-09-18 20:34:07 (GMT)
committerpeter.spjuth@gmail.com <pspjuth>2003-09-18 20:34:07 (GMT)
commit63e4697c802a79361c7207d7c8f69a3b4a7355ad (patch)
tree9b72060fae3d89f7a3786c8a1eb48bbc592f87b0 /generic
parent04c68e0fba53dbd778f7be410d28dc58bf53c40f (diff)
downloadtk-63e4697c802a79361c7207d7c8f69a3b4a7355ad.zip
tk-63e4697c802a79361c7207d7c8f69a3b4a7355ad.tar.gz
tk-63e4697c802a79361c7207d7c8f69a3b4a7355ad.tar.bz2
Fixed a small mistake in previous checkin.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkGrid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c
index 9a8ca90..b449b10 100644
--- a/generic/tkGrid.c
+++ b/generic/tkGrid.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkGrid.c,v 1.28 2003/09/18 18:22:22 pspjuth Exp $
+ * RCS: @(#) $Id: tkGrid.c,v 1.29 2003/09/18 20:34:07 pspjuth Exp $
*/
#include "tkInt.h"
@@ -885,10 +885,11 @@ GridRowColumnConfigureCommand(tkwin, interp, objc, objv)
return TCL_ERROR;
}
ok = CheckSlotData(masterPtr, slot, slotType, /* checkOnly */ 1);
- slotPtr = (slotType == COLUMN) ?
- masterPtr->masterDataPtr->columnPtr :
- masterPtr->masterDataPtr->rowPtr;
-
+ if (ok == TCL_OK) {
+ slotPtr = (slotType == COLUMN) ?
+ masterPtr->masterDataPtr->columnPtr :
+ masterPtr->masterDataPtr->rowPtr;
+ }
/*
* Return all of the options for this row or column. If the
* request is out of range, return all 0's.