Skip to content

Commit

Permalink
fix: Solve bug which doesn't remove selection box in primary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrukhqasim committed Oct 14, 2017
1 parent 2b3c0d0 commit 544e008
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ else if (button == MouseButton.MIDDLE) {
}

private void dragReleasedWithConnection(Rectangle2D rectangle, double scale, MouseButton button) {
if (button != MouseButton.SECONDARY)
selectionConnection.setPoints(new Point2D(0,0), new Point2D(0,0));
selectionBox.setBoundingBox(new Rectangle2D(0,0,0,0));
if (button != MouseButton.SECONDARY) {
return;
}
select(true, boxesOcr.getBoxes(), scale, new Rectangle2D(0,0,0,0));
selectionBox.setBoundingBox(new Rectangle2D(0,0,0,0));

selectionConnection.setPoints(new Point2D(0,0), new Point2D(0,0));

Vector<Box> boxes = boxesCell.getBoxes();
Vector<Box> selectedBoxes = new Vector<>();
Expand Down

0 comments on commit 544e008

Please sign in to comment.