Skip to content

Commit

Permalink
GH-259 fix a problem where the attachement view persists when opening…
Browse files Browse the repository at this point in the history
… a regular document by forcing a layout change when detected
  • Loading branch information
Patrick Corless committed Mar 8, 2023
1 parent d4265b5 commit 1a9fc35
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2963,9 +2963,8 @@ public void commonNewDocumentHandling(String fileDescription) {
}
// make sure we don't keep Attachments view around from a previous load
// as we don't want to use it for a none attachments PDF file.
if (documentViewController.getViewMode() ==
DocumentViewControllerImpl.USE_ATTACHMENTS_VIEW) {
documentViewController.revertViewType();
else if (documentViewController.getViewMode() == DocumentViewControllerImpl.USE_ATTACHMENTS_VIEW) {
documentViewController.setViewType(DocumentViewControllerImpl.ONE_COLUMN_VIEW);
}
// check to see if we have collection
if (isPdfCollection()) {
Expand Down Expand Up @@ -3220,7 +3219,7 @@ public void closeDocument() {
annotationSummaryFrame.dispose();
}

// set the default cursor.
// set the default cursor.
documentViewController.closeDocument();

// clear search controller caches.
Expand Down

0 comments on commit 1a9fc35

Please sign in to comment.