Revision: 76718
          http://sourceforge.net/p/brlcad/code/76718
Author:   starseeker
Date:     2020-08-12 14:32:37 +0000 (Wed, 12 Aug 2020)
Log Message:
-----------
Whoops - Archer uses that tkwin check

Modified Paths:
--------------
    brlcad/branches/RELEASE/src/libtclcad/tclcad_init.c

Modified: brlcad/branches/RELEASE/src/libtclcad/tclcad_init.c
===================================================================
--- brlcad/branches/RELEASE/src/libtclcad/tclcad_init.c 2020-08-12 14:29:52 UTC 
(rev 76717)
+++ brlcad/branches/RELEASE/src/libtclcad/tclcad_init.c 2020-08-12 14:32:37 UTC 
(rev 76718)
@@ -286,8 +286,8 @@
 #ifdef HAVE_TK
     /* If we're doing Tk, make sure we have a window */
     if (init_gui) {
-       Tk_MainWindow(interp);
-       return TCL_ERROR;
+       Tk_Window tkwin = Tk_MainWindow(interp);
+       if (!tkwin) return TCL_ERROR;
     }
 #endif
 

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to