From: Robert Roebling Date: Sat, 16 Mar 2002 11:35:12 +0000 (+0000) Subject: Removed notebook tab flicker. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d4b5a5e99d62f6e6fd127f8afb4e551aa9aceac Removed notebook tab flicker. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index 252723acd7..c90d042c39 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -1254,9 +1254,14 @@ void wxNotebook::DoSetSize(int x, int y, int width, int height, int sizeFlags) { - wxControl::DoSetSize(x, y, width, height, sizeFlags); + wxSize old_client_size = GetClientSize(); - Relayout(); + wxControl::DoSetSize(x, y, width, height, sizeFlags); + + wxSize new_client_size = GetClientSize(); + + if (old_client_size != new_client_size) + Relayout(); } // ----------------------------------------------------------------------------