summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:47:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-13 20:47:03 (GMT)
commitdbec27a4c7733b44e33ba898fef7e8636e86caa0 (patch)
tree8e87eab00435411297e7e09440a4fe70b575b40a /xlib/xgc.c
parent799666382d309825a9bd5d7205fd05662a742391 (diff)
downloadtk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.zip
tk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.tar.gz
tk-dbec27a4c7733b44e33ba898fef7e8636e86caa0.tar.bz2
[Bug 3567453]: Clip regions must be cleared with XSetClipMask and not
TkSetRegion on X11.
Diffstat (limited to 'xlib/xgc.c')
-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);