summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
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 a47a3fd..8c04726 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -466,7 +466,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);