Skip to content

Commit

Permalink
fix: Fix bug while combining empty OCR boxes into cell
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrukhqasim committed Oct 14, 2017
1 parent 9ced431 commit 29cf0af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ public void keyPressed(double scale, KeyCode keyCode) {
union = Utils.union(union, box.getBoundingBox(scale));
}
}

Box cellBox = new CellBox(union);
boxesCell.getBoxes().add(cellBox);
if (union != null) {
Box cellBox = new CellBox(union);
boxesCell.getBoxes().add(cellBox);
}

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void start(Stage primaryStage) throws Exception{
@Override
public void stop() throws Exception {
controller.onSave();

super.stop();
System.exit(0);
}
Expand Down

0 comments on commit 29cf0af

Please sign in to comment.