]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed notebook tab flicker.
authorRobert Roebling <robert@roebling.de>
Sat, 16 Mar 2002 11:35:12 +0000 (11:35 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 16 Mar 2002 11:35:12 +0000 (11:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/notebook.cpp

index 252723acd71358232492af6fbb8cace98710b220..c90d042c3972158c88c8ae86860fdef175c5c3e5 100644 (file)
@@ -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();
 }
 
 // ----------------------------------------------------------------------------