mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
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:
commit
072b06856c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user