From 2d76cd8c182dfb7ed31343db2b3df2c655aff301 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 May 2001 06:49:36 +0000 Subject: Patch from Stephan for ensuring clipboard works on Windows. --- gtk/ScintillaGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(selBuffer), len); -- cgit v1.2.3