diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 74b1a82af..dbeaa8308 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -5946,7 +5946,12 @@ bool FurnaceGUI::loop() { *curPosInRowsLambda-=(songLength-songLoopedSectionLength); // a hack so progress bar does not jump? } } - *progressLambda=(float)((*curPosInRowsLambda)+((*totalLoopsLambda)-(*loopsLeftLambda))*songLength+lengthOfOneFile*(*curFileLambda))/(float)totalLength; + if (totalLength<0.1) { + // DON'T + *progressLambda=0; + } else { + *progressLambda=(float)((*curPosInRowsLambda)+((*totalLoopsLambda)-(*loopsLeftLambda))*songLength+lengthOfOneFile*(*curFileLambda))/(float)totalLength; + } } ); }