Skip to content
Snippets Groups Projects
Commit 7fd0e96b authored by leprob001's avatar leprob001
Browse files

Bugfix, fixedSoundspeed label was displaying incorrect value.

parent 82169c9e
No related branches found
No related tags found
No related merge requests found
148
\ No newline at end of file
149
\ No newline at end of file
......@@ -21,7 +21,7 @@ for i = 1:length(fieldNames)
case 'useFixedSoundspeed'
artoaGui.editOffsets.checkboxFixedSoundspeed.Value = currentValue;
case 'fixedSoundspeed'
artoaGui.editOffsets.inputSoundspeed.String = num2str(currentValue * 1000);
artoaGui.editOffsets.inputSoundspeed.String = num2str(currentValue);
case 'offsets'
artoaGui.editOffsets.tableSoundsourceOffsets.Data = table2cell( ...
currentValue ...
......@@ -33,7 +33,7 @@ end
%% Update soundspeed field
if artoaWorkspace.editOffsets.useFixedSoundspeed
artoaGui.editOffsets.textOptimumSoundspeedValue.String = num2str(artoaWorkspace.editOffsets.fixedSoundspeed * 1000);
artoaGui.editOffsets.textOptimumSoundspeedValue.String = num2str(artoaWorkspace.editOffsets.fixedSoundspeed);
elseif artoa.data.hasMember(artoaWorkspace, {'editOffsets', 'optimumSoundspeed'})
artoaGui.editOffsets.textOptimumSoundspeedValue.String = num2str(artoaWorkspace.editOffsets.optimumSoundspeed);
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment