Fixes bug #19531 - Cannot select the last day of month in Carbon

git-svn-id: trunk@31956 -
This commit is contained in:
sekelsenmat 2011-08-12 07:03:06 +00:00
parent a7f666c100
commit d7b4da9529

View File

@ -766,7 +766,7 @@ begin
if sz = sizeof( CFGregorianDate ) then
begin
CFGregorianDatePtr(ptr)^ := inData.date;
if (inData.selDay>0) and (inData.selDay<inData.daysInMonth) then
if (inData.selDay>0) and (inData.selDay<=inData.daysInMonth) then
CFGregorianDatePtr(ptr)^.day := inData.selDay;
end
else