summaryrefslogtreecommitdiff
path: root/source/l/lesstif/lesstif.rendertable.check.diff
blob: 49f877e97b4d629b5d0c48f798613a8727e8d0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./lib/Xm-2.1/RenderTable.c.orig	2005-06-24 06:36:03.000000000 -0500
+++ ./lib/Xm-2.1/RenderTable.c	2009-03-23 16:34:48.000000000 -0500
@@ -465,7 +465,7 @@
 	DEBUGOUT(_LtDebug(__FILE__, w, "_XmRenderTableFinaliseTag(%s)\n", tag));
 #if 1
 	/* Experimental start */
-	if (r->dpy == 0)
+	if (r->dpy == 0  &&  w)
 		r->dpy = XtDisplay(w);
 	/* Experimental end */
 #endif