Fix to last commit (vertical expanding of the icon to correct rendering on OSX)

This commit is contained in:
YuSanka 2018-09-11 11:39:13 +02:00
parent e3bb829e42
commit 775b86a3d8
3 changed files with 10 additions and 7 deletions

View file

@ -422,9 +422,9 @@ public:
class PrusaIconTextRenderer : public wxDataViewCustomRenderer
{
public:
PrusaIconTextRenderer( const wxString &varianttype = wxT("PrusaDataViewIconText"),
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
int align = wxDVR_DEFAULT_ALIGNMENT) {}
PrusaIconTextRenderer( wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
int align = wxDVR_DEFAULT_ALIGNMENT):
wxDataViewCustomRenderer(wxT("wxDataViewIconText"), mode, wxALIGN_CENTER) {}
bool SetValue(const wxVariant &value);
bool GetValue(wxVariant &value) const;