From c9b94166f6a1aa453961156787bac43e3fc99f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20P=C3=B6hler?= Date: Tue, 8 Aug 2023 14:52:57 +0200 Subject: [PATCH] FIX: could not set breakpoint by clicking on line number in debugger --- toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java b/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java index 92ac6cb22f..820deb73eb 100644 --- a/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java +++ b/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java @@ -1864,7 +1864,7 @@ public void mouseExited(MouseEvent e) {} /** Called when a mouse button is released. */ @Override public void mouseReleased(MouseEvent e) { - if (e.getComponent() == this && (e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0) { + if (e.getComponent() == this && e.getButton() == MouseEvent.BUTTON1) { int y = e.getY(); Font font = fileWindow.textArea.getFont(); FontMetrics metrics = getFontMetrics(font);