diff options
author | nyamatongwe <devnull@localhost> | 2001-05-19 06:49:36 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-05-19 06:49:36 +0000 |
commit | 2d76cd8c182dfb7ed31343db2b3df2c655aff301 (patch) | |
tree | b91c1b327e6e6eea01a759a61a75bc2b60447d96 | |
parent | 006684c8ed092bff53e4f249481824eacc3b51e0 (diff) | |
download | scintilla-mirror-2d76cd8c182dfb7ed31343db2b3df2c655aff301.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); |