summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:49:44 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:49:44 (GMT)
commit7a077bb388d8dcc2295b508e936e3d9eb7f4e57a (patch)
tree04a7b96bfe837ae870d19ef78eec77aed860b817 /xlib
parent01dc2559dada42bd2c0f7c5c91f2f3403146bfa8 (diff)
parentc9097c70173e25b097adfd1b44b2d2ab360ab1be (diff)
downloadtk-7a077bb388d8dcc2295b508e936e3d9eb7f4e57a.zip
tk-7a077bb388d8dcc2295b508e936e3d9eb7f4e57a.tar.gz
tk-7a077bb388d8dcc2295b508e936e3d9eb7f4e57a.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);