]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
compilation fixes for !USE_PCH
[wxWidgets.git] / src / msw / combobox.cpp
index aad9581f874eaca2b8ea8a785e407938ab244d78..94ded90fd17c32bbfdfb91eb0cd3814421c742e5 100644 (file)
@@ -251,6 +251,7 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
                 m_value = wxEmptyString;
             else
                 m_value = GetString(wParam);
+            m_selectionOld = -1;
             break;
     }
 
@@ -346,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
                 {