now pause shows original image as first frame

This commit is contained in:
lostjared
2018-11-17 12:57:38 -08:00
parent 074180e402
commit caf60496fa
2 changed files with 11 additions and 1 deletions

View File

@@ -73,6 +73,14 @@ void GotoWindow::showWindow(int frame_index, int min, int max) {
goto_pos->setSliderPosition(frame_index);
slideChanged(frame_index);
show();
QImage img;
int set_index = frame_index-1;
if(set_index < 0)
set_index = 0;
if(playback_thread->getFrame(img, set_index)) {
disp_window->displayImage(img);
}
}
void GotoWindow::pressedGo() {