mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +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)) {
|
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);
|
||||||
|
if (panelWidth != 0 && panelHeight != 0) {
|
||||||
resetView(panelWidth, panelHeight);
|
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