X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00e12320ca545cda6deaea3bd8cf4da639033dee..6fb0a92e2c3ec26a1c94083d793b44b2a906daa1:/src/generic/treectrl.cpp diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index bb496e4ee9..151c9b78d3 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -1422,7 +1422,7 @@ void wxTreeCtrl::SetImageList(wxImageList *imageList) if(height > m_lineHeight) m_lineHeight = height; } - if (m_lineHeight<40) m_lineHeight+=4; // at least 4 pixels (odd such that a line can be drawn in between) + if (m_lineHeight<40) m_lineHeight+=2; // at least 4 pixels (odd such that a line can be drawn in between) else m_lineHeight+=m_lineHeight/10; // otherwise 10% extra spacing #endif @@ -2086,7 +2086,7 @@ void wxTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc ) int total_h = (image_h > text_h) ? image_h : text_h; - if (total_h<40) total_h+=4; // at least 4 pixels + if (total_h<40) total_h+=2; // at least 4 pixels else total_h+=total_h/10; // otherwise 10% extra spacing item->SetHeight(total_h);