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:
@@ -255,7 +255,6 @@ wxSize wxStaticText::DoGetBestSize() const
|
||||
|
||||
// Adding 1 to width to workaround GTK sometimes wrapping the text needlessly
|
||||
size.x++;
|
||||
CacheBestSize(size);
|
||||
return size;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user