From be91a24daaf51a077827520643f09a9135c25b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 12 Apr 2013 17:41:32 +0200 Subject: [PATCH] Fixed bug that was affecting the display of dynDates objects. --- matlab/@dynDate/dynDate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/@dynDate/dynDate.m b/matlab/@dynDate/dynDate.m index 8cfe1136b..26d98463a 100644 --- a/matlab/@dynDate/dynDate.m +++ b/matlab/@dynDate/dynDate.m @@ -135,7 +135,7 @@ switch nargin if ~isnumeric(a) && size(a)~=2 && size(a,2)~=2 error(['dynDate:: Can''t instantiate the class! The first argument ' inputname(a) ' must be a 1*2 vector of integers.']) end - if b==1 && a(2)~1 + if b==1 && a(2)~=1 error(['dynDate:: Can''t instantiate the class! The second element of the first argument ' inputname(a) ' must be equal to one.']) end if a(2)<=0 || a(2)>b