Gtk2: fixed ItemDisplayRect() returning rect when drLabel is needed.Part of issue #30055

git-svn-id: trunk@52249 -
This commit is contained in:
zeljko 2016-04-25 19:42:47 +00:00
parent ac9b657bf0
commit 2aaeaacc7b

View File

@ -1155,10 +1155,10 @@ begin
ItemRect := IconRect
else
begin
ItemRect.x += IconRect.width + IconRect.x + 2;
ItemRect.x += AWidth + 2;
ItemRect.y += 2; // offset
ItemRect.Width -= IconRect.Width + 2;
ItemRect.height -= 2; // offset
ItemRect.Width -= AWidth + 2;
ItemRect.Height -= 2; // offset
end;
end;