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)
commit3b56d8436bd7fd053bc567b8d8bbc573306c5dfe (patch)
tree8e87eab00435411297e7e09440a4fe70b575b40a /xlib
parentbc916480b8159c7013c4a8c43a2cd8f79d0cf9f4 (diff)
downloadtk-3b56d8436bd7fd053bc567b8d8bbc573306c5dfe.zip
tk-3b56d8436bd7fd053bc567b8d8bbc573306c5dfe.tar.gz
tk-3b56d8436bd7fd053bc567b8d8bbc573306c5dfe.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);