From fbc6d38b350d944922e0eb6f54359c95283ebbb1 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 6 Dec 2006 10:07:06 +0000 Subject: [PATCH] Fix for bug IPAL14106 : Incorrect name of the saved snapshots of the animation. --- src/VISU_I/VISU_TimeAnimation.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 711a86e3..e65ade37 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1212,7 +1212,13 @@ void VISU_TimeAnimation::saveImages( int theFieldId, { if (myDumpFormat.compare("AVI") != 0) { QString aFile(myDumpPath); - QString aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[myFrame]); + + QString aName; + if ( myAnimationMode == 0 ) // 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]); + int aPos = -1; while ((aPos = aName.find(".")) > -1 ) aName.replace(aPos, 1, "_"); -- 2.39.2