Fix drawing of icons for non-root wxTreeCtrl items
Fix y coordinate value passed to wxDC::DrawBitmap() by restoring the
parentheses accidentally removed in 6dd4e73ea3 (Add wxDrawImageBitmap()
helper and use it in wx{List,Tree}Ctrl, 2022-10-25).
This commit is contained in:
parent
811cdc0ffc
commit
2a13fd238e
1 changed files with 2 additions and 2 deletions
|
|
@ -2655,7 +2655,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||
dc,
|
||||
item->GetX(),
|
||||
item->GetY() +
|
||||
total_h > state_h ? (total_h-state_h)/2 : 0);
|
||||
(total_h > state_h ? (total_h-state_h)/2 : 0));
|
||||
}
|
||||
|
||||
if ( image != NO_IMAGE )
|
||||
|
|
@ -2666,7 +2666,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||
dc,
|
||||
item->GetX() + state_w,
|
||||
item->GetY() +
|
||||
total_h > image_h ? (total_h-image_h)/2 : 0);
|
||||
(total_h > image_h ? (total_h-image_h)/2 : 0));
|
||||
}
|
||||
|
||||
dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue