Don't call CacheBestSize() from DoGetBestSize() implementations
This is unnecessary, wxWindow::GetBestSize() already does this, so calling it from DoGetBestSize() called by it too is just useless.
This commit is contained in:
@@ -1214,10 +1214,7 @@ wxSize wxPropertyGrid::DoGetBestSize() const
|
||||
width += m_pState->GetColumnFitWidth(dc, m_pState->DoGetRoot(), i, true);
|
||||
}
|
||||
|
||||
const wxSize sz = wxSize(width, lineHeight*numLines + 40);
|
||||
|
||||
CacheBestSize(sz);
|
||||
return sz;
|
||||
return wxSize(width, lineHeight*numLines + 40);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user