You've already forked lazarus-ccr
A small fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2795 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -164,6 +164,7 @@ type
|
|||||||
FConfirmedDateTime: TDateTime;
|
FConfirmedDateTime: TDateTime;
|
||||||
FNoEditingDone: Integer;
|
FNoEditingDone: Integer;
|
||||||
FAllowDroppingCalendar: Boolean;
|
FAllowDroppingCalendar: Boolean;
|
||||||
|
FChangeInRecursiveCall: Boolean;
|
||||||
|
|
||||||
function AreSeparatorsStored: Boolean;
|
function AreSeparatorsStored: Boolean;
|
||||||
function GetChecked: Boolean;
|
function GetChecked: Boolean;
|
||||||
@@ -2377,9 +2378,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomZVDateTimePicker.UpdateDate;
|
procedure TCustomZVDateTimePicker.UpdateDate;
|
||||||
const
|
|
||||||
InRecursiveCall: Boolean = False;
|
|
||||||
|
|
||||||
var
|
var
|
||||||
W: Array[1..3] of Word;
|
W: Array[1..3] of Word;
|
||||||
WT: Array[TTimeTextPart] of Word;
|
WT: Array[TTimeTextPart] of Word;
|
||||||
@@ -2397,9 +2395,9 @@ begin
|
|||||||
FDateTime := ComposeDateTime(FMinDate, FDateTime);
|
FDateTime := ComposeDateTime(FMinDate, FDateTime);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if not InRecursiveCall then begin // we'll skip the next part in
|
if not FChangeInRecursiveCall then begin // we'll skip the next part in
|
||||||
// recursive calls which could be made through Change or UndoChanges
|
// recursive calls which could be made through Change or UndoChanges
|
||||||
InRecursiveCall := True;
|
FChangeInRecursiveCall := True;
|
||||||
try
|
try
|
||||||
if FUserChanging > 0 then begin // this means that the change is caused by user interaction
|
if FUserChanging > 0 then begin // this means that the change is caused by user interaction
|
||||||
try
|
try
|
||||||
@@ -2411,7 +2409,7 @@ begin
|
|||||||
end else
|
end else
|
||||||
FConfirmedDateTime := FDateTime;
|
FConfirmedDateTime := FDateTime;
|
||||||
finally
|
finally
|
||||||
InRecursiveCall := False;
|
FChangeInRecursiveCall := False;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -3332,6 +3330,7 @@ begin
|
|||||||
with GetControlClassDefaultSize do
|
with GetControlClassDefaultSize do
|
||||||
SetInitialBounds(0, 0, cx, cy);
|
SetInitialBounds(0, 0, cx, cy);
|
||||||
|
|
||||||
|
FChangeInRecursiveCall := False;
|
||||||
FNoEditingDone := 0;
|
FNoEditingDone := 0;
|
||||||
FArrowShape := asModernSmaller;
|
FArrowShape := asModernSmaller;
|
||||||
FAllowDroppingCalendar := True;
|
FAllowDroppingCalendar := True;
|
||||||
|
Reference in New Issue
Block a user