summaryrefslogtreecommitdiff
path: root/recipes/lesstif/files/020_render_table_crash.diff
blob: 1699dbe190843b4d0866b6fde5a9121d61dbba09 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lesstif2-0.95.0.orig/lib/Xm-2.1/RenderTable.c
+++ lesstif2-0.95.0/lib/Xm-2.1/RenderTable.c
@@ -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