summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-09-13 20:47:03 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-09-13 20:47:03 (GMT)
commit010ffd6b49539ce3084d34ed117d329e3e102287 (patch)
tree8e87eab00435411297e7e09440a4fe70b575b40a /xlib
parent110f39545b08958b821414b0d795742a27a7c83f (diff)
downloadtk-010ffd6b49539ce3084d34ed117d329e3e102287.zip
tk-010ffd6b49539ce3084d34ed117d329e3e102287.tar.gz
tk-010ffd6b49539ce3084d34ed117d329e3e102287.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 6c5e31c..fcc2798 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -436,7 +436,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);