Skip to content

Commit

Permalink
Suppress warnings about unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wi committed Dec 29, 2022
1 parent 8e6c80f commit 28fc648
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generic/treectlg.cpp
Expand Up @@ -2656,6 +2656,8 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
int w = f.GetNumericWeight();
wxSize ps = f.GetPixelSize();
wxLogDebug("1 Item Text='%s' Bold=%i wxFont weight=%i size=%ix%i", item->GetText(), item->IsBold()?1:0, w, ps.x, ps.y);
w++;
ps.x++;
}

if ( state != wxTREE_ITEMSTATE_NONE )
Expand Down Expand Up @@ -2685,6 +2687,8 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
int w2 = f2.GetNumericWeight();
wxSize ps2 = f2.GetPixelSize();
wxLogDebug("2 wxFont weight=%i size=%ix%i", w2, ps2.x, ps2.y);
w2++;
ps2.x++;
}

dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
Expand Down

0 comments on commit 28fc648

Please sign in to comment.