Changeset 33 for trunk/src


Ignore:
Timestamp:
Mar 3, 2010, 1:56:07 PM (15 years ago)
Author:
sommeria
Message:

loop on fid of revision.log works if the file is absent too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r31 r33  
    326326   if ishandle(handles.UVMAT_title)
    327327       fid=fopen('revision.log')
    328        if fid
     328       if fid~=-1
    329329        a=textscan(fid,'%s%s%s',1,'HeaderLines',1,'Delimiter','|');
    330330        set(handles.UVMAT_title,'String',[{'Copyright Joel Sommeria, 2008, Coriolis/ LEGI / CNRS-UJF-INPG';'GNU General Public License'; path_to_uvmat; ['at revision ' a{1}{1}]};a{3}{1};errormsg]);
Note: See TracChangeset for help on using the changeset viewer.