LCL, don't draw focusrect if defaultdrawing=false, from Serggey Smirnov issue #12526

git-svn-id: trunk@17183 -
This commit is contained in:
jesus 2008-11-02 06:22:46 +00:00
parent 6b8e6f225b
commit f77fb72b40

View File

@ -7739,7 +7739,8 @@ var
OldPenMode: TFPPenMode; OldPenMode: TFPPenMode;
begin begin
// Draw focused cell if we have the focus // Draw focused cell if we have the focus
if Self.Focused or (EditorAlwaysShown and ((Feditor=nil) or not Feditor.Focused)) then if DefaultDrawing and (Self.Focused or
(EditorAlwaysShown and ((Feditor=nil) or not Feditor.Focused))) then
begin begin
CalcFocusRect(aRect); CalcFocusRect(aRect);
if FUseXORFeatures then begin if FUseXORFeatures then begin