Skip to content

Commit

Permalink
ui: Prevent print dialog from stopping to work when switching the viewer
Browse files Browse the repository at this point in the history
Closes #19.
  • Loading branch information
NiklasRentzCAU committed Jul 28, 2021
1 parent b0fff72 commit a029454
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void setViewer(final IViewer viewer) {
* @return the viewer to print
*/
private PiccoloViewer getViewer() {
if (pViewer != null) {
if (pViewer != null && !pViewer.getControl().isDisposed()) {
return pViewer;
}

Expand Down

0 comments on commit a029454

Please sign in to comment.