Revision: 55199
http://brlcad.svn.sourceforge.net/brlcad/?rev=55199&view=rev
Author: r_weiss
Date: 2013-04-19 21:38:30 +0000 (Fri, 19 Apr 2013)
Log Message:
-----------
Bug fix for mged "red" command which was preventing the temp file to be opened
in the native text editor on Windows 64bit.
Modified Paths:
--------------
brlcad/trunk/src/libged/red.c
Modified: brlcad/trunk/src/libged/red.c
===================================================================
--- brlcad/trunk/src/libged/red.c 2013-04-19 21:35:51 UTC (rev 55198)
+++ brlcad/trunk/src/libged/red.c 2013-04-19 21:38:30 UTC (rev 55199)
@@ -837,6 +837,9 @@
return GED_ERROR;
}
+ /* Close the temp file since 'write_comb' opens it. */
+ (void)fclose(fp);
+
/* Write the combination components to the file */
if (write_comb(gedp, comb, argv[1])) {
bu_vls_printf(gedp->ged_result_str, "Unable to edit %s\n", argv[1]);
@@ -844,6 +847,9 @@
goto cleanup;
}
+ /* Close the temp file so it will be written to disk. The temp file now
+ * contains the data for the combination which is to then be edited.
+ */
(void)fclose(fp);
/* Edit the file */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits