Revision: 42276
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42276&view=rev
Author:   starseeker
Date:     2011-01-14 20:10:30 +0000 (Fri, 14 Jan 2011)

Log Message:
-----------
editit in mged is returning TCL_OK, so check for that when using it in ted; 
without that check, if statement was failing and readsolid was never being 
called - this fixes issue reported by ogloth on the sourceforge forums.

Modified Paths:
--------------
    brlcad/trunk/NEWS
    brlcad/trunk/src/mged/tedit.c

Modified: brlcad/trunk/NEWS
===================================================================
--- brlcad/trunk/NEWS   2011-01-14 20:08:45 UTC (rev 42275)
+++ brlcad/trunk/NEWS   2011-01-14 20:10:30 UTC (rev 42276)
@@ -13,6 +13,7 @@
 --- 2010-12-XX  Release 7.18.2                                     ---
 ----------------------------------------------------------------------
 
+* fixed ted command to work using new editor support - Cliff Yapp
 * fixed mged text editor invocation bug when editor wasn't installed
        - Sean Morrison, Daniel Roßberg, Cliff Yapp
 * support for comment lines at beginning of .asc files - John Anderson

Modified: brlcad/trunk/src/mged/tedit.c
===================================================================
--- brlcad/trunk/src/mged/tedit.c       2011-01-14 20:08:45 UTC (rev 42275)
+++ brlcad/trunk/src/mged/tedit.c       2011-01-14 20:10:30 UTC (rev 42276)
@@ -114,7 +114,7 @@
 
     (void)fclose(fp);
 
-    if (editit(argv[0], tmpfil)) {
+    if (editit(argv[0], tmpfil) == TCL_OK) {
        if (readsolid()) {
            (void)unlink(tmpfil);
            return TCL_ERROR;


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to