]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for Bug 1097510, reset m_selectionOld when the value changes
authorRobin Dunn <robin@alldunn.com>
Fri, 7 Jan 2005 18:29:55 +0000 (18:29 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 7 Jan 2005 18:29:55 +0000 (18:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/combobox.cpp

index a9bb62cb5eb9ecbf4b996e7e51e7b902e79d4c80..94ded90fd17c32bbfdfb91eb0cd3814421c742e5 100644 (file)
@@ -347,6 +347,7 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
                 if ( sel == -1 )
                 {
                     m_value = wxGetWindowText(GetHwnd());
+                    m_selectionOld = -1;
                 }
                 else // we're synthesizing text updated event from sel change
                 {