Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Apr 8, 2017
1 parent 75fa931 commit e7e87d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public DocumentViewerPage(DocumentPageViewModel initialPage) {
background.setStyle("-fx-fill: WHITE");
//imageView.setImage(new WritableImage(getDesiredWidth(), getDesiredHeight()));
BackgroundTask<Image> generateImage = BackgroundTask
.run(() -> renderPage(initialPage))
.wrap(() -> renderPage(initialPage))
.onSuccess(image -> {
imageView.setImage(image);
progress.setVisible(false);
Expand Down Expand Up @@ -197,7 +197,7 @@ public void updateItem(DocumentPageViewModel page) {
imageView.setOpacity(0);

BackgroundTask<Image> generateImage = BackgroundTask
.run(() -> renderPage(page))
.wrap(() -> renderPage(page))
.onSuccess(image -> {
imageView.setImage(image);

Expand Down

0 comments on commit e7e87d4

Please sign in to comment.