Переглянути джерело

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 роки тому
джерело
коміт
09cefa8836

+ 0
- 5
src/com/dmdirc/addons/ui_swing/textpane/TextPaneCanvas.java Переглянути файл

@@ -753,11 +753,6 @@ class TextPaneCanvas extends JPanel implements MouseInputListener,
753 753
                 }
754 754
             }
755 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 756
             if (info.getLine() != -1 && info.getPart() != -1) {
762 757
                 if (type == MouseEventType.CLICK) {
763 758
                     selection.setStartLine(info.getLine());

Завантаження…
Відмінити
Зберегти