From 6e033a800ba3edbd29e16abc064b45b7758d905e Mon Sep 17 00:00:00 2001 From: Marco Ratto <rattoma@d-01ri1701573.jrc.it> Date: Thu, 17 Jan 2019 10:56:12 +0100 Subject: [PATCH] trap possible cases where the option is type dates (manual cherry pick from commit 392ee4ae8a200a82003acd0c9b70c47c542f6b32) --- matlab/set_default_option.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/set_default_option.m b/matlab/set_default_option.m index 8b91d5e267..43910ba296 100644 --- a/matlab/set_default_option.m +++ b/matlab/set_default_option.m @@ -41,11 +41,11 @@ if isempty(options.(field)) return end -if ~iscell(options.(field)) +if ~iscell(options.(field)) && ~isdates(options.(field)) if isnan(options.(field)) options.(field) = default; return end end -% 06/07/03 MJ added ; to eval expression \ No newline at end of file +% 06/07/03 MJ added ; to eval expression -- GitLab