]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.
[wxWidgets.git] / src / gtk / combobox.cpp
index 445a6cddb130b7354ddfbceabe041f8608b364c9..62da3070c9d58f0160d52c141d1f7355d29d5c14 100644 (file)
@@ -292,6 +292,10 @@ void wxComboBox::SetString(unsigned int n, const wxString& text)
         // with wxMSW and also because it makes sense as leaving the old string
         // in the text but not in the list would be confusing to the user.
         SetValue(text);
+
+        // And we need to keep the selection unchanged, modifying the item is
+        // not supposed to deselect it.
+        SetSelection(n);
     }
 }