From 5ad3f0c8d15b36923accc2f76ab520ea8ddacef0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Oct 2007 21:02:31 +0000 Subject: [PATCH] fixed bug with inversed IsEditable() return value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textentry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index 95985319e2..d07b8a93c2 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -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)