From 34efa77cd55d03629a3fc64090d4666f4a8a7132 Mon Sep 17 00:00:00 2001 From: zoran Date: Sat, 10 Jul 2021 14:44:39 +0000 Subject: [PATCH] DateTimePicker - simplification of the condition in DoAutoCheck git-svn-id: trunk@65437 - --- components/datetimectrls/datetimepicker.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/datetimectrls/datetimepicker.pas b/components/datetimectrls/datetimepicker.pas index f6312a7705..65f06a6470 100644 --- a/components/datetimectrls/datetimepicker.pas +++ b/components/datetimectrls/datetimepicker.pas @@ -3881,8 +3881,8 @@ end; procedure TCustomDateTimePicker.DoAutoCheck; begin - if ShowCheckBox and not Checked and (dtpoAutoCheck in Options) then - Checked := True; + if dtpoAutoCheck in Options then + SetChecked(True); end; procedure TCustomDateTimePicker.DoAutoAdjustLayout(