Fixed bug that was affecting the display of dynDates objects.

time-shift
Stéphane Adjemian (Charybdis) 2013-04-12 17:41:32 +02:00
parent 6eecf0ba10
commit be91a24daa
1 changed files with 1 additions and 1 deletions

View File

@ -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