summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_Input_.cxx9
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index e7fd9cf4e..b782f8db9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
CHANGES IN FLTK 1.1.0
- Documentation updates.
+ - Fl_Output and Fl_Multiline_Output didn't prevent
+ middle-mouse pastes.
- Fl_JPEG_Image didn't compile out-of-the-box with Cygwin
due to a bug in the Cygwin JPEG library headers.
- Fl_BMP_Image still didn't work with some old BMP files.
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index 498996fc9..04e456258 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.15 2002/07/23 16:28:19 easysw Exp $"
+// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.16 2002/07/29 22:55:33 easysw Exp $"
//
// Common input widget routines for the Fast Light Tool Kit (FLTK).
//
@@ -690,6 +690,11 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
return 1;
case FL_PASTE: {
+ if (readonly()) {
+ fl_beep(FL_BEEP_ERROR);
+ return 1;
+ }
+
// strip trailing control characters and spaces before pasting:
const char* t = Fl::event_text();
const char* e = t+Fl::event_length();
@@ -835,5 +840,5 @@ Fl_Input_::~Fl_Input_() {
}
//
-// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.15 2002/07/23 16:28:19 easysw Exp $".
+// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.16 2002/07/29 22:55:33 easysw Exp $".
//