From 4df7511b18e6f90c3a167801b78755081cbaaef8 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Tue, 2 Mar 1999 07:03:15 +0000 Subject: 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 --- src/Fl_cutpaste.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_cutpaste.cxx') 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 $". // -- cgit v1.2.3