projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed some off-by-one errors that were visible on wxGTK but actually
[wxWidgets.git]
/
src
/
gtk1
/
textctrl.cpp
diff --git
a/src/gtk1/textctrl.cpp
b/src/gtk1/textctrl.cpp
index 29437adb9052cc44037c1ab5a8e1ab69ed58d399..4cef1e816857c61ced6274a5fbd63cf4ba8d9a12 100644
(file)
--- 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