datetimectrls: fixed compilation with fpc 2.7.1

git-svn-id: trunk@47246 -
This commit is contained in:
mattias 2014-12-25 10:51:02 +00:00
parent 00431d3725
commit f411da2257

View File

@ -2073,7 +2073,7 @@ begin
YMD.Day := FCorrectedValue;
dtpMonth:
YMD.Month := FCorrectedValue;
dtp.dtpYear:
dtpYear:
if (YMD.Day = 29) and (YMD.Month = 2) then begin
while not IsLeapYear(YMD.Year) do
Inc(YMD.Year);