lcl: fix treeview plus/minus sign drawing with no themes

git-svn-id: trunk@30348 -
This commit is contained in:
paul 2011-04-17 13:17:14 +00:00
parent a494e8fc10
commit a96a6545ba

View File

@ -2158,6 +2158,13 @@ begin
begin
if Details.Part in [TVP_GLYPH, TVP_HOTGLYPH] then
begin
with ARect do
begin
if not odd(Right - Left) then
Dec(Right);
if not odd(Bottom - Top) then
Dec(Bottom);
end;
Rectangle(DC, ARect.Left, ARect.Top, ARect.Right, ARect.Bottom);
Tmp := (ARect.Bottom + ARect.Top) shr 1;
MoveToEx(DC, ARect.Left + 2, Tmp, nil);