summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-09-13 20:49:44 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-09-13 20:49:44 (GMT)
commit94b7088d04f985e6b094ab9a9092f42b266e1943 (patch)
tree04a7b96bfe837ae870d19ef78eec77aed860b817 /xlib
parentd09f38ea376a2f01c80a61bc00c5c0833cee9928 (diff)
parent3b56d8436bd7fd053bc567b8d8bbc573306c5dfe (diff)
downloadtk-94b7088d04f985e6b094ab9a9092f42b266e1943.zip
tk-94b7088d04f985e6b094ab9a9092f42b266e1943.tar.gz
tk-94b7088d04f985e6b094ab9a9092f42b266e1943.tar.bz2
[Bug 3567453]: Clip regions must be cleared with XSetClipMask and not
TkSetRegion on X11.
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);