Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 215eb530f6c7d644cc7731602ddc5e81 > files > 9

nedit-5.5-6mdv2008.1.src.rpm

--- nedit-5.5/util/misc.c.visfix	2004-08-10 00:20:00.000000000 +0200
+++ nedit-5.5/util/misc.c	2006-08-30 13:06:31.000000000 +0200
@@ -384,6 +384,9 @@
 	return (*visual == DefaultVisual(display, screen));
     }
     
+    /* Set "Default" visual to avoid crashes with the detected best ones */
+    reqID = DefaultVisual(display, screen)->visualid;
+    
     /* Read the visualID and installColormap resources for the application.
        visualID can be specified either as a number (the visual id as
        shown by xdpyinfo), as a visual class name, or as Best or Default. */