You've already forked lazarus-ccr
CalLite: TCalendarLite.SetDate must use only the integer part of the provided date.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8579 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1968,11 +1968,13 @@ end;
|
||||
procedure TCalendarLite.SetDate(AValue: TDateTime);
|
||||
var
|
||||
oldMonth: Integer;
|
||||
dateValue: Integer;
|
||||
begin
|
||||
if FDate = AValue then Exit;
|
||||
dateValue := trunc(AValue);
|
||||
if FDate = dateValue then Exit;
|
||||
oldMonth := MonthOf(FDate);
|
||||
FDate := AValue;
|
||||
FPrevDate := AValue;
|
||||
FDate := dateValue;
|
||||
FPrevDate := dateValue;
|
||||
FSelDates.Clear;
|
||||
DateChange;
|
||||
if MonthOf(FDate) <> oldMonth then
|
||||
|
Reference in New Issue
Block a user