Ignore:
Timestamp:
Oct 10, 2014, 10:11:30 AM (9 years ago)
Author:
sommeria
Message:

various

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_input.m

    r810 r822  
    473473
    474474handles.output.ActionInput=read_GUI(handles.civ_input);
     475% correct mask or grid name for Windows system (replace '\' by '/')
     476if isfield(handles.output.ActionInput,'Civ1')
     477    if isfield(handles.output.ActionInput.Civ1,'Mask')
     478        handles.output.ActionInput.Civ1.Mask=regexprep(handles.output.ActionInput.Civ1.Mask,'\','/');
     479    end
     480    if isfield(handles.output.ActionInput.Civ1,'Grid')
     481        handles.output.ActionInput.Civ1.Grid=regexprep(handles.output.ActionInput.Civ1.Grid,'\','/');
     482    end
     483end
     484if isfield(handles.output.ActionInput,'Civ2')
     485    if isfield(handles.output.ActionInput.Civ2,'Mask')
     486        handles.output.ActionInput.Civ2.Mask=regexprep(handles.output.ActionInput.Civ2.Mask,'\','/');
     487    end
     488    if isfield(handles.output.ActionInput.Civ2,'Grid')
     489        handles.output.ActionInput.Civ2.Grid=regexprep(handles.output.ActionInput.Civ2.Grid,'\','/');
     490    end
     491end
    475492guidata(hObject, handles);% Update handles structure
    476493uiresume(handles.civ_input);
Note: See TracChangeset for help on using the changeset viewer.