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:
@@ -539,8 +539,6 @@ wxSize wxToolBar::DoGetBestSize() const
|
||||
sizeBest.y ++;
|
||||
}
|
||||
|
||||
CacheBestSize(sizeBest);
|
||||
|
||||
return sizeBest;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user