Skip to content
Snippets Groups Projects
Commit 51be0a31 authored by Ulrich Kemloh's avatar Ulrich Kemloh
Browse files

fixed error displaying the number of frames when manually using the slider

parent e2d31c2e
No related branches found
No related tags found
No related merge requests found
......@@ -869,18 +869,18 @@ void MainWindow::slotCurrentAction(QString msg)
void MainWindow::slotFrameNumber(unsigned long actualFrameCount)
{
QString msg;
msg.setNum(actualFrameCount);
ui.frameSliderLabel->setText("Frame: " + msg);
//compute the mamixum framenumber
int maxFrameCount=1;
if(extern_first_dataset_loaded) {
maxFrameCount=extern_trajectories_firstSet.getFramesNumber();
}
if(actualFrameCount>maxFrameCount) actualFrameCount=maxFrameCount;
QString msg;
msg.setNum(actualFrameCount);
ui.frameSliderLabel->setText("Frame: " + msg);
if(!frameSliderHold)if(maxFrameCount!=0)//TODO WTF, otherwise an arrymtic exeption arises
ui.framesIndicatorSlider->setValue((ui.framesIndicatorSlider->maximum()*actualFrameCount)/maxFrameCount);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment