diff options
| author | nyamatongwe <unknown> | 2005-04-11 01:01:53 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2005-04-11 01:01:53 +0000 |
| commit | 95707c7d4974c78cfd0e8e6e9803a9a44715b8f0 (patch) | |
| tree | fdd844b55708f467c2b6bce28e6163519f093c85 | |
| parent | 35f9e91489cb858fd78aa7e04db88b3eda46d4f4 (diff) | |
| download | scintilla-mirror-95707c7d4974c78cfd0e8e6e9803a9a44715b8f0.tar.gz | |
Problem fixed when performing paste over rectangular selection where
selection dragged from top right to bottom left.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 2 | ||||
| -rw-r--r-- | win32/ScintillaWin.cxx | 2 |
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 |
