mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Don't reset the view if width or height are zero
This commit is contained in:
parent
746d9635ac
commit
b773be6d29
@ -521,7 +521,9 @@ class MediaViewImagePanel extends JPanel implements MediaFileViewer.MediaViewPan
|
|||||||
if (nonNull(fxImage)) {
|
if (nonNull(fxImage)) {
|
||||||
// We have a non-null image, so let's show it.
|
// We have a non-null image, so let's show it.
|
||||||
fxImageView.setImage(fxImage);
|
fxImageView.setImage(fxImage);
|
||||||
resetView(panelWidth, panelHeight);
|
if (panelWidth != 0 && panelHeight != 0) {
|
||||||
|
resetView(panelWidth, panelHeight);
|
||||||
|
}
|
||||||
masterGroup.getChildren().add(fxImageView);
|
masterGroup.getChildren().add(fxImageView);
|
||||||
masterGroup.getChildren().add(tagsGroup);
|
masterGroup.getChildren().add(tagsGroup);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user