summaryrefslogtreecommitdiffstats
path: root/generic/tkImage.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2000-11-28 11:16:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2000-11-28 11:16:04 (GMT)
commitb5702fc7b79150b86cccbae5cb5d1f69d0ca505e (patch)
tree7a69bbd3f26c269aeedb413f8666bcf91b99012c /generic/tkImage.c
parent30949cbba8e868da7e1fa1e4200be6385bd07797 (diff)
downloadtk-b5702fc7b79150b86cccbae5cb5d1f69d0ca505e.zip
tk-b5702fc7b79150b86cccbae5cb5d1f69d0ca505e.tar.gz
tk-b5702fc7b79150b86cccbae5cb5d1f69d0ca505e.tar.bz2
Backed out previous change (except for test for bug.)
Diffstat (limited to 'generic/tkImage.c')
-rw-r--r--generic/tkImage.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/generic/tkImage.c b/generic/tkImage.c
index 2ebb5de..7952108 100644
--- a/generic/tkImage.c
+++ b/generic/tkImage.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: tkImage.c,v 1.8 2000/11/23 13:50:11 dkf Exp $
+ * RCS: @(#) $Id: tkImage.c,v 1.9 2000/11/28 11:16:04 dkf Exp $
*/
#include "tkInt.h"
@@ -232,18 +232,6 @@ Tk_ImageObjCmd(clientData, interp, objc, objv)
sprintf(idString, "image%d", dispPtr->imageId);
name = idString;
firstOption = 3;
- } else if (arg[0] == '.') {
- /*
- * It is a really bad idea to create an image with the
- * same name as the root window, and who knows what
- * will happen if any other (potential) window name is
- * used. So it's prohibited for safety, so stopping
- * bug #120819
- */
- Tcl_AppendResult(interp, "image names cannot start with "
- "period symbols: \"", arg, "\" is illegal",
- (char *)NULL);
- return TCL_ERROR;
} else {
name = arg;
firstOption = 4;