Revision: 48412
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48412&view=rev
Author:   starseeker
Date:     2012-01-11 17:47:03 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
If we're going to check for ifp, don't do anything that might require ifp 
without the OK.  Not entirely clear if there should be some failure case here, 
of the 'sliently ignore' behavior is preferred... CID 270

Modified Paths:
--------------
    brlcad/trunk/src/libfb/if_X.c

Modified: brlcad/trunk/src/libfb/if_X.c
===================================================================
--- brlcad/trunk/src/libfb/if_X.c       2012-01-11 17:44:49 UTC (rev 48411)
+++ brlcad/trunk/src/libfb/if_X.c       2012-01-11 17:47:03 UTC (rev 48412)
@@ -1372,14 +1372,14 @@
     XSetWindowAttributes xswa;
 
     if (ifp) {
-       FB_CK_FBIO(ifp);
+      FB_CK_FBIO(ifp);
+
+      xswa.save_under = True;
+      XI(ifp)->curswin = XCreateWindow(XI(ifp)->dpy, XI(ifp)->win,
+         ifp->if_xcenter, ifp->if_ycenter, 1, 1, 3,
+         CopyFromParent, InputOutput, CopyFromParent,
+         CWSaveUnder, &xswa);
     }
-
-    xswa.save_under = True;
-    XI(ifp)->curswin = XCreateWindow(XI(ifp)->dpy, XI(ifp)->win,
-                                    ifp->if_xcenter, ifp->if_ycenter, 1, 1, 3,
-                                    CopyFromParent, InputOutput, 
CopyFromParent,
-                                    CWSaveUnder, &xswa);
     return 0;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to