summaryrefslogtreecommitdiffstats
path: root/xlib/xgc.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-09-13 20:49:44 (GMT)
committerdkf <dkf@noemail.net>2012-09-13 20:49:44 (GMT)
commitb937b5b53484220ab8564ecc91d1793d820f4839 (patch)
tree04a7b96bfe837ae870d19ef78eec77aed860b817 /xlib/xgc.c
parent0e12a0e2c06ab80faf5ff353ddb209fa354651b9 (diff)
parent587b38d3f868f51936cde286a36435b5bf0567fa (diff)
downloadtk-b937b5b53484220ab8564ecc91d1793d820f4839.zip
tk-b937b5b53484220ab8564ecc91d1793d820f4839.tar.gz
tk-b937b5b53484220ab8564ecc91d1793d820f4839.tar.bz2
[Bug 3567453]: Clip regions must be cleared with XSetClipMask and not
TkSetRegion on X11. FossilOrigin-Name: 39af97604b0368ed555b7f6954baa81c0de2d3da
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 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);