diff --git a/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java b/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java index c777d44..b2660f1 100755 --- a/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java +++ b/src/main/java/me/gekoramy/github/quiz/app/preview/PreviewPresenter.java @@ -96,7 +96,7 @@ public void initialize(URL location, ResourceBundle resources) { lblRepo.setText(updateAvailable.getRepo().getName()); - progress.progressProperty().bind(examStarter.getQuestionPool().todoProperty().divide(examStarter.getQuestionPool().total())); + progress.progressProperty().bind(examStarter.getQuestionPool().todoProperty().divide((double) examStarter.getQuestionPool().total())); btnRevert.visibleProperty().bind(Bindings.equal(0, examStarter.getQuestionPool().todoProperty())); btnStart.visibleProperty().bind(btnRevert.visibleProperty().not());