Skip to content

Commit

Permalink
[gui] fix errdlg typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Oct 28, 2024
1 parent 2bf959c commit 7d62780
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions img2mesh.m
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function plotfigevent(hobject, event)
try
[newdata.node, newdata.face] = v2s(data.vol, eval(res{1}), opt, res{4});
catch err
errdlg(err.message, 'v2sgui');
errordlg(err.message, 'v2sgui');
end
newtype.hasnode = 1;
newtype.hasface = 1;
Expand Down Expand Up @@ -539,7 +539,7 @@ function plotfigevent(hobject, event)
[newdata.node, newdata.elem, newdata.face] = v2m(data.vol, eval(res{1}), ...
opt, res{4}, varargin{:});
catch err
errdlg(err.message, 'v2mgui');
errordlg(err.message, 'v2mgui');
end
newtype.hasnode = 1;
newtype.hasface = 1;
Expand Down Expand Up @@ -588,7 +588,7 @@ function plotfigevent(hobject, event)
s2m(data.node, data.face, str2double(res{1}), ...
str2double(res{2}), res{3}, eval(res{4}), eval(res{5}));
catch err
errdlg(err.message, 's2mgui');
errordlg(err.message, 's2mgui');
end
newtype.hasnode = 1;
newtype.hasface = 1;
Expand Down Expand Up @@ -657,7 +657,7 @@ function miSphere_Callback(hObject, eventdata, handles)
newtype.haselem = 1;
end
catch err
errdlg(err.message, 'meshasphere');
errordlg(err.message, 'meshasphere');
end
newtype.hasnode = 1;
newtype.hasface = 1;
Expand Down Expand Up @@ -689,7 +689,7 @@ function miBox_Callback(hObject, eventdata, handles)
newtype.haselem = 1;
end
catch err
errdlg(err.message, 'meshabox');
errordlg(err.message, 'meshabox');
end

newtype.hasnode = 1;
Expand Down Expand Up @@ -725,7 +725,7 @@ function miCylinder_Callback(hObject, eventdata, handles)
newtype.haselem = 1;
end
catch err
errdlg(err.message, 'meshacylinder');
errordlg(err.message, 'meshacylinder');
end
newtype.hasnode = 1;
newtype.hasface = 1;
Expand Down Expand Up @@ -795,7 +795,7 @@ function miLoadVol_Callback(hObject, eventdata, handles)
end
end
catch err
errdlg(err.message, 'LoadVol');
errordlg(err.message, 'LoadVol');
end

if (exist('nodedata', 'var'))
Expand Down Expand Up @@ -837,7 +837,7 @@ function miLoadMesh_Callback(hObject, eventdata, handles)
end
end
catch err
errdlg(err.message, 'LoadMesh');
errordlg(err.message, 'LoadMesh');
end

if (exist('nodedata', 'var'))
Expand Down Expand Up @@ -878,7 +878,7 @@ function miLoadSurf_Callback(hObject, eventdata, handles)
end
end
catch err
errdlg(err.message, 'LoadSurf');
errordlg(err.message, 'LoadSurf');
end
if (exist('nodedata', 'var'))
adddatatograph(handles, nodedata);
Expand Down

0 comments on commit 7d62780

Please sign in to comment.