]> git.saurik.com Git - wxWidgets.git/commitdiff
Invalidate best size after string change in wxChoice.
authorRobert Roebling <robert@roebling.de>
Tue, 29 May 2007 08:09:03 +0000 (08:09 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 29 May 2007 08:09:03 +0000 (08:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/choice.cpp

index ef4a9e61d197c48d62cf9547f9a52dd7adaa55d3..69ca48117405b9041650a3cbf8c024edf6572967 100644 (file)
@@ -373,6 +373,8 @@ void wxChoice::SetString(unsigned int n, const wxString& str)
             wxASSERT_MSG( label != NULL , wxT("wxChoice: invalid label") );
 
             gtk_label_set_text( label, wxGTK_CONV( str ) );
+            
+            InvalidateBestSize();
 
             return;
         }