Ignore:
Timestamp:
Jul 30, 2024, 6:44:35 PM (2 months ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r1159 r1165  
    850850    end
    851851    outputfile=[filebase '.xml'];
    852     [~,RootFile]=fileparts(filebase);
    853     [~,~,errormsg]=update_imadoc(RootPath,SubDir,'GeometryCalib',GeometryCalib,0);
    854     if ~strcmp(errormsg,'')
    855         msgbox_uvmat('ERROR',errormsg);
     852 %   [~,RootFile]=fileparts(filebase);
     853
     854    t=xmltree;
     855    t=set(t,1,'name','ImaDoc');
     856    [t,uid_calib]=add(t,1,'element','GeometryCalib');
     857   % xmlfile=[filebase '.xml'];
     858    t=struct2xml(GeometryCalib,t,uid_calib);
     859    save(t)
     860    try
     861        save(t,outputfile);
     862    catch ME
     863        errormsg=['error in saving ' outputfile ': ' ME.message];
     864         msgbox_uvmat('ERROR',errormsg);
    856865    end
    857866    listfile=get(handles.ListCoordFiles,'string');
Note: See TracChangeset for help on using the changeset viewer.