Browse Source

Fixes issue 3839: Textpane selection is still broken when selecting downwards (when cursor is between two lines)

Change-Id: Ib9656cc9bb37d9041ef6d33b6492854a066e1d2f
Reviewed-on: http://gerrit.dmdirc.com/953
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.4
Greboid 14 years ago
parent
commit
09cefa8836
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java

+ 0
- 5
src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java View File

753
                 }
753
                 }
754
             }
754
             }
755
             final LineInfo info = getClickPosition(point, true);
755
             final LineInfo info = getClickPosition(point, true);
756
-            if (info.getLine() == -1 && info.getPart() == -1 && contains(point)) {
757
-                info.setLine(0);
758
-                info.setPart(0);
759
-                info.setIndex(0);
760
-            }
761
             if (info.getLine() != -1 && info.getPart() != -1) {
756
             if (info.getLine() != -1 && info.getPart() != -1) {
762
                 if (type == MouseEventType.CLICK) {
757
                 if (type == MouseEventType.CLICK) {
763
                     selection.setStartLine(info.getLine());
758
                     selection.setStartLine(info.getLine());

Loading…
Cancel
Save