]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/pickerbase.cpp
Add check to prevent creation of element wxXmlNodes with content data.
[wxWidgets.git] / src / common / pickerbase.cpp
index cd73e10814a3c78372e414385a947c324fa2ec1d..ce17ad7da88493e00b2b2e359092f94b67421030 100644 (file)
@@ -129,7 +129,7 @@ void wxPickerBase::PostCreation()
     const wxSize textBestSize( HasTextCtrl() ? m_text->GetBestSize() : wxSize());
     wxSize pickerMinSize;
     pickerMinSize.y = wxMax(pickerBestSize.y, textBestSize.y);
-    pickerMinSize.x = wxMax(pickerMinSize.x, pickerMinSize.y);
+    pickerMinSize.x = wxMax(pickerBestSize.x, pickerMinSize.y);
     if ( pickerMinSize != pickerBestSize )
         m_picker->SetMinSize(pickerMinSize);