Skip to content

Commit b1f625d

Browse files
committed
bugfix droping inside selection - fixes #178
1 parent 690b92d commit b1f625d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ICSharpCode.AvalonEdit/Editing/SelectionMouseHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,12 @@ void textArea_QueryContinueDrag(object sender, QueryContinueDragEventArgs e)
283283

284284
void StartDrag()
285285
{
286-
// prevent nested StartDrag calls
287-
mode = MouseSelectionMode.Drag;
288-
289286
// mouse capture and Drag'n'Drop doesn't mix
290287
textArea.ReleaseMouseCapture();
291288

289+
// prevent nested StartDrag calls
290+
mode = MouseSelectionMode.Drag;
291+
292292
DataObject dataObject = textArea.Selection.CreateDataObject(textArea);
293293

294294
DragDropEffects allowedEffects = DragDropEffects.All;

0 commit comments

Comments
 (0)