Commit e207eceb authored by Christian Brabetz's avatar Christian Brabetz
Browse files

small fixes for default folder.

cutting oor fix.
parent 83c2cd95
......@@ -447,11 +447,10 @@ set(handles.ymask,'Enable','Off');
% xcenter=handles.xcenter;
xcenter = str2double(get(handles.xcentermask,'String'));
dx=handles.dxmask;
dx=int64(handles.dxmask);
% ycenter=handles.ycenter;
ycenter = str2double(get(handles.ycentermask,'String'));
dy=handles.dymask;
dy=int64(handles.dymask);
if ~isfield(data.data, 'ImageArray_cut')
data.data.ImageArray_cut = zeros(dy, dx, 4, length(data.parameters.rcffiles), 'uint16'); % 16bit/channel and files
elseif size(data.data.ImageArray_cut,1) ~= dy || size(data.data.ImageArray_cut,2) ~= dx
......@@ -810,7 +809,11 @@ data=getappdata(0,'data');
set(handles.undobutton,'Enable','Off');
savedata=rmfield(data,'Undo');
savedata.parameters.rcfpath=uigetdir;
if ~isempty(data.parameters.rcfpath)
savedata.parameters.rcfpath=uigetdir(data.parameters.rcfpath);
else
savedata.parameters.rcfpath=uigetdir;
end
br=0;
if savedata.parameters.rcfpath == 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment