Skip to content

Commit 4fa56b8

Browse files
committed
Fix crash when less than 3 images found
1 parent 5b56865 commit 4fa56b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

saverframe.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ RenderWindow::RenderWindow(wxWindow* parent, const wxString& aPath, const bool a
7676
std::mt19937 generator(rd());
7777

7878
std::shuffle(m_files.begin(), m_files.end(), generator);
79-
m_imgIndex = -1;
8079

8180
for (int i = 0; i < 3; i++)
8281
{
83-
Increment(true);
82+
m_imgIndex = i;
8483
LoadNextImage(true);
8584
}
8685

0 commit comments

Comments
 (0)