diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 29437adb90..4cef1e8168 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -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 diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 29437adb90..4cef1e8168 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -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 diff --git a/src/motif/textctrl.cpp b/src/motif/textctrl.cpp index 07bd42afba..af16bc359e 100644 --- a/src/motif/textctrl.cpp +++ b/src/motif/textctrl.cpp @@ -300,7 +300,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 diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 82f29026b7..c560d03a24 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -501,7 +501,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