Skip to content

Commit 00fe749

Browse files
committed
Do not resize window when new image is added.
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent 88c2d75 commit 00fe749

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/iv/imageviewer.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -854,14 +854,11 @@ ImageViewer::open()
854854
if (filename.empty())
855855
continue;
856856
add_image(filename);
857-
// int n = m_images.size()-1;
858-
// IvImage *newimage = m_images[n];
859-
// newimage->read_iv (0, false, image_progress_callback, this);
860857
}
858+
861859
if (old_lastimage >= 0) {
862860
// Otherwise, add_image already did this for us.
863861
current_image(old_lastimage + 1);
864-
fitWindowToImage(true, true);
865862
}
866863
}
867864

@@ -887,7 +884,6 @@ ImageViewer::openRecentFile()
887884
if (m_images.size() > 1) {
888885
// Otherwise, add_image already did this for us.
889886
current_image(m_images.size() - 1);
890-
fitWindowToImage(true, true);
891887
}
892888
}
893889
}

0 commit comments

Comments
 (0)