From: mkr Date: Wed, 6 Dec 2006 10:07:06 +0000 (+0000) Subject: Fix for bug IPAL14106 : Incorrect name of the saved snapshots of the animation. X-Git-Tag: V3_2_4pre1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbc6d38b350d944922e0eb6f54359c95283ebbb1;p=modules%2Fvisu.git Fix for bug IPAL14106 : Incorrect name of the saved snapshots of the animation. --- 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, "_");