]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
workaround for non-standard icon sizes under 64 bit
[wxWidgets.git] / src / generic / spinctlg.cpp
index 6887f4eae78f012b30192d715d8b2eb2cc8ae52c..a6b11fece1d7080a80e1ae94fece8b220171568f 100644 (file)
@@ -65,7 +65,11 @@ class wxSpinCtrlTextGeneric : public wxTextCtrl
 public:
     wxSpinCtrlTextGeneric(wxSpinCtrlGenericBase *spin, const wxString& value, long style=0)
         : wxTextCtrl(spin->GetParent(), wxID_ANY, value, wxDefaultPosition, wxDefaultSize,
-                     style & (wxALIGN_MASK | wxTE_PROCESS_ENTER))
+                     // This is tricky: we want to honour any alignment flags
+                     // but not wxALIGN_CENTER_VERTICAL because it's the same
+                     // as wxTE_PASSWORD and we definitely don't want to show
+                     // asterisks in spin control.
+                     style & (wxALIGN_MASK | wxTE_PROCESS_ENTER) & ~wxTE_PASSWORD)
     {
         m_spin = spin;