aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-05-19 06:49:36 +0000
committernyamatongwe <unknown>2001-05-19 06:49:36 +0000
commitef3410995b0235293aed59a69eff1262b8c574d0 (patch)
treeb91c1b327e6e6eea01a759a61a75bc2b60447d96
parent8d3feaa99394736bf6e9bfc5d8bbbc0cdf86b18d (diff)
downloadscintilla-mirror-ef3410995b0235293aed59a69eff1262b8c574d0.tar.gz
Patch from Stephan for ensuring clipboard works on Windows.
-rw-r--r--gtk/ScintillaGTK.cxx4
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);