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;
begin
// 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
CalcFocusRect(aRect);
if FUseXORFeatures then begin