]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
Compilation fixes, bug fixes and streamlining in wxCanvas.
[wxWidgets.git] / src / gtk / textctrl.cpp
index 29437adb9052cc44037c1ab5a8e1ab69ed58d399..4cef1e816857c61ced6274a5fbd63cf4ba8d9a12 100644 (file)
@@ -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