summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-13 18:15:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-13 18:15:56 (GMT)
commitc6300a7265e457702bf13456bfdccd02aa4a1a54 (patch)
tree633af8c60b7edde7f150480213f2abdc2f49a66f /xlib
parent3f2bd047306169e148056331830dfb214349fb71 (diff)
parenta37288e3386c67b1c08f3fee24fcdfb265b90930 (diff)
downloadtk-c6300a7265e457702bf13456bfdccd02aa4a1a54.zip
tk-c6300a7265e457702bf13456bfdccd02aa4a1a54.tar.gz
tk-c6300a7265e457702bf13456bfdccd02aa4a1a54.tar.bz2
merge trunk
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 0cebbc8..c6836bd 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -465,7 +465,7 @@ TkSetRegion(
TkRegion r)
{
if (r == None) {
- FreeClipMask(gc);
+ Tcl_Panic("must not pass None to TkSetRegion for compatibility with X11; use XSetClipMask instead");
} else {
TkpClipMask *clip_mask = AllocClipMask(gc);