grids: fix row background color when editing and goRowSelect enabled. Issue #29237

git-svn-id: trunk@51005 -
This commit is contained in:
ondrej 2015-12-23 11:50:24 +00:00
parent 884fddbf00
commit 775dee256f

View File

@ -3586,12 +3586,12 @@ begin
Canvas.Pen.Mode := pmCopy;
GetSelectedState(aState, IsSelected);
if IsSelected then begin
if FEditorMode and (FEditor<>nil)
if FEditorMode and (aCol = Self.Col)
and (((FEditor=FStringEditor) and (FStringEditor.BorderStyle=bsNone))
or (FEditor=FButtonStringEditor))
then
Canvas.Brush.Color := FEditor.Color
else if FEditorMode and (FEditor=FPicklistEditor) then
else if FEditorMode and (aCol = Self.Col) and (FEditor=FPicklistEditor) then
Canvas.Brush.Color := GetNotSelectedColor
else
Canvas.Brush.Color := SelectedColor;