From 6cec9b2f4248b73caa38c80701355d0dbc816a72 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Wed, 9 Dec 2015 18:46:39 +0300 Subject: [PATCH] do not show disabled drag cursor for the same line the breakpoint is on --- .../xdebugger/impl/breakpoints/XLineBreakpointImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java index 2674a8c334f3..87c1896d57b0 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java @@ -240,9 +240,11 @@ public class XLineBreakpointImpl

extends XBreak } private boolean canMoveTo(int line, VirtualFile file) { - return file != null && - myType.canPutAt(file, line, getProject()) && - getBreakpointManager().findBreakpointAtLine(myType, file, line) == null; + if (file != null && myType.canPutAt(file, line, getProject())) { + XLineBreakpoint

existing = getBreakpointManager().findBreakpointAtLine(myType, file, line); + return existing == null || existing == this; + } + return false; } public void updatePosition() {