]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL13602 : wrong save of animation pictures.
authormkr <mkr@opencascade.com>
Fri, 8 Dec 2006 09:27:35 +0000 (09:27 +0000)
committermkr <mkr@opencascade.com>
Fri, 8 Dec 2006 09:27:35 +0000 (09:27 +0000)
src/VISU_I/VISU_TimeAnimation.cxx

index 205e9fea5f08505560e7e3a87b486ca1ef7a13e1..7e2027e8f3894805d520e97a7a4e25dbc4b5f688 100644 (file)
@@ -1230,6 +1230,8 @@ void VISU_TimeAnimation::saveImages( int theFieldId,
     aFile += aName;
     aFile += ".";
     aFile += myDumpFormat.lower();
+    ProcessVoidEvent(new TVoidMemFunEvent<SVTK_ViewWindow>
+                    (myView,&SVTK_ViewWindow::RefreshDumpImage)); // IPAL13602
     ProcessEvent(new TMemFun2ArgEvent<SVTK_ViewWindow,bool,const QString&,const QString&>
                 (myView,&SVTK_ViewWindow::dumpViewToFormat,aFile,myDumpFormat));
   } else {
@@ -1262,6 +1264,7 @@ void VISU_TimeAnimation::saveImages( int theFieldId,
        myView->dumpViewToFormat(aFile,"JPEG");
     */
     SUIT_ViewWindow* aView = myView;
+    ProcessVoidEvent(new TVoidMemFunEvent<SVTK_ViewWindow>(myView,&SVTK_ViewWindow::RefreshDumpImage)); // IPAL13602
     QImage img = ProcessEvent(new TMemFunEvent<SUIT_ViewWindow,QImage>(aView,&SUIT_ViewWindow::dumpView));
     if (!img.isNull()) {
       int width = img.width(); width = (width/16)*16;