Restored original logic for setting return_code in write_exregion_file - previous submission prevented export. See http://www.cmiss.org/cmgui/tracker/687.
Restored original logic for setting return_code in write_exregion_file - previous submission prevented export.
See http://www.cmiss.org/cmgui/tracker/687.

git-svn-id: 4705079bc6b8aadf675e3696f5c015a6aa4916e3@5788 3c1deb5b-d424-0410-962d-aba41a686d42

OpenCMISS/zinc,OpenCMISS/zinc,hsorby/zinc,OpenCMISS/zinc,hsorby/zinc,hsorby/zinc,hsorby/zinc,OpenCMISS/zinc