mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
bug 205389: [terminal] null pointer exception when opening a view
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205389
This commit is contained in:
parent
508129509f
commit
f87d3d8141
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ public class TextCanvas extends GridCanvas {
|
|||
}
|
||||
|
||||
void setSelection(Point p) {
|
||||
if (!p.equals(fDraggingEnd)) {
|
||||
if (fDraggingStart !=null && !p.equals(fDraggingEnd)) {
|
||||
fDraggingEnd = p;
|
||||
if (compare(p, fDraggingStart) < 0) {
|
||||
fCellCanvasModel.setSelection(p.y, fDraggingStart.y, p.x, fDraggingStart.x);
|
||||
|
|
Loading…
Add table
Reference in a new issue