]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textentry.cpp
Correct activate logic for <ENTER>
[wxWidgets.git] / src / msw / textentry.cpp
index 95985319e24d64ff6a0e9f949055324811f29788..d07b8a93c27320eb4747e75e7e1f00be6ed831e0 100644 (file)
@@ -135,7 +135,7 @@ void wxTextEntry::GetSelection(long *from, long *to) const
 
 bool wxTextEntry::IsEditable() const
 {
-    return (::GetWindowLong(GetEditHwnd(), GWL_STYLE) & ES_READONLY) != 0;
+    return !(::GetWindowLong(GetEditHwnd(), GWL_STYLE) & ES_READONLY);
 }
 
 void wxTextEntry::SetEditable(bool editable)