]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/spinctrl.cpp
fix for get best size when having empty labels
[wxWidgets.git] / src / gtk1 / spinctrl.cpp
index 44d10c8a731b3f8e272ee1fa42cfbea7279e7d42..a15f637dda564761191a956cf7112403f2c451f8 100644 (file)
@@ -290,7 +290,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
         }
     }
 
-    if ((event.GetKeyCode() == WXK_RETURN))
+    if ((event.GetKeyCode() == WXK_RETURN) && (m_windowStyle & wxPROCESS_ENTER))
     {
         wxCommandEvent evt( wxEVT_COMMAND_TEXT_ENTER, m_windowId );
         evt.SetEventObject(this);