From 16c6bfbdddb5ff0a7195a988a5307cbac2b73aa5 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sun, 28 Mar 2010 20:00:02 +0200 Subject: [PATCH] Fix for autocompletion drawing on Linux --- Units/Misc/v_autocompleteform.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Units/Misc/v_autocompleteform.pas b/Units/Misc/v_autocompleteform.pas index 7f003a4..204d3af 100644 --- a/Units/Misc/v_autocompleteform.pas +++ b/Units/Misc/v_autocompleteform.pas @@ -312,7 +312,7 @@ begin {$IFDEF FPC}UnlockSelectionChange;{$ENDIF} end; - if {$IFDEF FPC}(odPainted in State) or{$ENDIF} (not Visible) or (ARect.Left > ClientRect.Right) or (ARect.Top > ClientRect.Bottom) or (Index < 0) or (Index >= Items.Count) then + if (not Visible) or (ARect.Left > ClientRect.Right) or (ARect.Top > ClientRect.Bottom) or (Index < 0) or (Index >= Items.Count) then Exit; tl := ARect.Left;