[Matlab] Fix default threshold value when displaying phase info
At some point (after version 2014b), Matlab started passing an additional argument to 'display', which broke the logic for setting the default threshold. This caused all composition data to be excluded from the report shown by typing the name of the phase object.
This commit is contained in:
parent
00d254a1c2
commit
69f25b41dc
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
function display(self, threshold)
|
||||
if nargin < 2
|
||||
if nargin < 2 || ~isnumeric(threshold)
|
||||
threshold = 1e-14;
|
||||
end
|
||||
phase_get(thermo_hndl(self), 15, 1, threshold);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue