Fixed CanCut
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -744,7 +744,7 @@ bool wxTextCtrl::CanCut() const
|
||||
// Can cut if there's a selection
|
||||
long from, to;
|
||||
GetSelection(& from, & to);
|
||||
return (from != to) ;
|
||||
return (from != to) && (IsEditable());
|
||||
}
|
||||
|
||||
bool wxTextCtrl::CanPaste() const
|
||||
|
Reference in New Issue
Block a user