fixed bug with inversed IsEditable() return value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
14d6351382
commit
5ad3f0c8d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user