Merge pull request #6553 from APriestman/7004_resetView

7004 Don't reset the view if width or height are zero
This commit is contained in:
Richard Cordovano 2020-12-16 12:23:54 -05:00 committed by GitHub
commit 072b06856c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,7 +521,9 @@ class MediaViewImagePanel extends JPanel implements MediaFileViewer.MediaViewPan
if (nonNull(fxImage)) {
// We have a non-null image, so let's show it.
fxImageView.setImage(fxImage);
resetView(panelWidth, panelHeight);
if (panelWidth != 0 && panelHeight != 0) {
resetView(panelWidth, panelHeight);
}
masterGroup.getChildren().add(fxImageView);
masterGroup.getChildren().add(tagsGroup);