LCL-GTK2: Fix the boolean logic clause. Issue #32604.

git-svn-id: trunk@56196 -
This commit is contained in:
juha 2017-10-25 19:48:33 +00:00
parent 6b5b623410
commit 444f0dd6f1

View File

@ -1053,7 +1053,7 @@ begin
if AInfo <> nil then
begin
if (AInfo^.LCLObject is TCustomEdit)
and (AInfo^.CursorPos > 0) or (AInfo^.SelLength > 0) then
and ((AInfo^.CursorPos > 0) or (AInfo^.SelLength > 0)) then
begin
// gtk_entry_set_position(PGtkEntry(Widget), AInfo^.CursorPos);
// gtk_editable_select_region(PGtkEditable(Widget), AInfo^.CursorPos, AInfo^.CursorPos);