diff options
| author | nyamatongwe <unknown> | 2001-05-19 06:49:36 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-05-19 06:49:36 +0000 | 
| commit | ef3410995b0235293aed59a69eff1262b8c574d0 (patch) | |
| tree | b91c1b327e6e6eea01a759a61a75bc2b60447d96 | |
| parent | 8d3feaa99394736bf6e9bfc5d8bbbc0cdf86b18d (diff) | |
| download | scintilla-mirror-ef3410995b0235293aed59a69eff1262b8c574d0.tar.gz | |
Patch from Stephan for ensuring clipboard works on Windows.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index ebb06e4aa..ea1981dc5 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -869,8 +869,12 @@ void ScintillaGTK::GetSelection(GtkSelectionData *selection_data, guint info, ch  		// and need some way to mark the clipping as being stream or rectangular,  		// the terminating \0 is included in the length for rectangular clippings.  		// All other tested aplications behave benignly by ignoring the \0. +		// The #ifndef is the responsibility of archaeopteryx.com who say its +		// needed because on Windows there is already a '\0' at the end. +#ifndef _MSC_VER  		if (isRectangular)  			len++; +#endif  		gtk_selection_data_set(selection_data, GDK_SELECTION_TYPE_STRING,  		                       8, reinterpret_cast<unsigned char *>(selBuffer),  		                       len);  | 
