summaryrefslogtreecommitdiff
path: root/src/Fl_cutpaste.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-02 07:03:15 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-02 07:03:15 +0000
commit4df7511b18e6f90c3a167801b78755081cbaaef8 (patch)
tree26e8abf8f5bec29d7702726de4db2b660f9bd4f8 /src/Fl_cutpaste.cxx
parent32291ad0d5d9312534fa3c061c13535a38fa5a2c (diff)
Didn't like yesterday's fix, I changed it so that zero-length selections
are allowed. Warning: untested on WIN32 (although it seems likely that it will work). git-svn-id: file:///fltk/svn/fltk/trunk@349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cutpaste.cxx')
-rw-r--r--src/Fl_cutpaste.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_cutpaste.cxx b/src/Fl_cutpaste.cxx
index abbffac8b..9aed5b426 100644
--- a/src/Fl_cutpaste.cxx
+++ b/src/Fl_cutpaste.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_cutpaste.cxx,v 1.5 1999/01/07 19:17:31 mike Exp $"
+// "$Id: Fl_cutpaste.cxx,v 1.6 1999/03/02 07:03:15 bill Exp $"
//
// Cut/paste code for the Fast Light Tool Kit (FLTK).
//
@@ -124,7 +124,7 @@ void Fl::paste(Fl_Widget &receiver) {
// call this when you create a selection:
void Fl::selection(Fl_Widget &owner, const char *stuff, int len) {
- if (!stuff || len<=0) return;
+ if (!stuff || len<0) return;
if (len+1 > selection_buffer_length) {
delete[] selection_buffer;
selection_buffer = new char[len+100];
@@ -149,5 +149,5 @@ void Fl::selection(Fl_Widget &owner, const char *stuff, int len) {
#endif
//
-// End of "$Id: Fl_cutpaste.cxx,v 1.5 1999/01/07 19:17:31 mike Exp $".
+// End of "$Id: Fl_cutpaste.cxx,v 1.6 1999/03/02 07:03:15 bill Exp $".
//