Skip to content

Commit

Permalink
Simplify icon column creation
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Feb 1, 2024
1 parent 4433ef7 commit 3b6fb70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/edlistctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ void PoeditListCtrl::CreateColumns()
int iconWidth = PX(16);
#endif

auto iconRenderer = new wxDataViewBitmapRenderer("wxIcon", wxDATAVIEW_CELL_INERT, wxALIGN_CENTER | wxALIGN_CENTRE_VERTICAL);
m_colIcon = new wxDataViewColumn(L"", iconRenderer, Model::Col_Icon, iconWidth, wxALIGN_CENTER, 0);
AppendColumn(m_colIcon);
m_colIcon = AppendBitmapColumn(L"", Model::Col_Icon, wxDATAVIEW_CELL_INERT, iconWidth, wxALIGN_CENTER, 0);

auto sourceRenderer = new DataViewMarkupRenderer();
sourceRenderer->EnableEllipsize(wxELLIPSIZE_END);
Expand Down

0 comments on commit 3b6fb70

Please sign in to comment.