if (myDumpFormat.compare("AVI") != 0) {
QString aFile(myDumpPath);
+ int aFrameNb = myFrame; // parallel animation mode
+ if ( myAnimationMode == VISU::Animation::SUCCESSIVE ) // successive animation mode
+ aFrameNb = getRelativeFrameNumber(myFrame).second;
+
+ int aMaxNb = myFieldsLst[theFieldId].myTiming.size();
+ int nbDigits = QString("%1").arg(aMaxNb).length();
+ QString aFormat = QString("%.%1d_").arg(nbDigits);
+
QString aName;
- if ( myAnimationMode == VISU::Animation::PARALLEL ) // parallel animation mode
- aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[myFrame]);
- else // successive animation mode
- aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[getRelativeFrameNumber(myFrame).second]);
+ aName.sprintf(aFormat.latin1(), aFrameNb);
+ aName += QString("%1").arg(myFieldsLst[theFieldId].myTiming[aFrameNb]);
int aPos = -1;
while ((aPos = aName.find(".")) > -1 )