aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-04-11 01:01:53 +0000
committernyamatongwe <devnull@localhost>2005-04-11 01:01:53 +0000
commitabb64652a810c65daaa0f49bb9ac12092c258d9a (patch)
treefdd844b55708f467c2b6bce28e6163519f093c85
parent7832e18d9e44143117849b512763aa4b5a52ea4e (diff)
downloadscintilla-mirror-abb64652a810c65daaa0f49bb9ac12092c258d9a.tar.gz
Problem fixed when performing paste over rectangular selection where
selection dragged from top right to bottom left.
-rw-r--r--gtk/ScintillaGTK.cxx2
-rw-r--r--win32/ScintillaWin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 17da56f97..2dade05aa 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1458,10 +1458,10 @@ void ScintillaGTK::ReceivedSelection(GtkSelectionData *selection_data) {
GetGtkSelectionText(selection_data, selText);
pdoc->BeginUndoAction();
- int selStart = SelectionStart();
if (selection_data->selection != GDK_SELECTION_PRIMARY) {
ClearSelection();
}
+ int selStart = SelectionStart();
if (selText.rectangular) {
PasteRectangular(selStart, selText.s, selText.len);
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 0900e7a21..fe4e70fc7 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1163,8 +1163,8 @@ void ScintillaWin::Paste() {
if (!::OpenClipboard(MainHWND()))
return;
pdoc->BeginUndoAction();
- int selStart = SelectionStart();
ClearSelection();
+ int selStart = SelectionStart();
bool isRectangular = ::IsClipboardFormatAvailable(cfColumnSelect) != 0;
// Always use CF_UNICODETEXT if available