mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 11:49:24 +02:00
Cocoa: fix the background color issue in ListView/ListBox introduced by 85c17eb
This commit is contained in:
parent
9a92e07736
commit
895a3a9ed1
@ -360,7 +360,7 @@ var
|
||||
width: Integer;
|
||||
height: Integer;
|
||||
begin
|
||||
if lclBrush.Color = clWindow then
|
||||
if (lclBrush.Color=clWindow) or (lclBrush.Color=clDefault) then
|
||||
Exit;
|
||||
|
||||
width:= Round( view.bounds.size.width );
|
||||
@ -380,6 +380,11 @@ procedure TCocoaTableRowView.drawRect(dirtyRect: NSRect);
|
||||
var
|
||||
done: Boolean;
|
||||
begin
|
||||
if NOT self.tableView.isOwnerDraw then begin
|
||||
inherited drawRect( dirtyRect );
|
||||
Exit;
|
||||
end;
|
||||
|
||||
done:= self.tableView.lclCallDrawItem( row , self.bounds.size, dirtyRect );
|
||||
|
||||
if done then begin
|
||||
|
Loading…
Reference in New Issue
Block a user