From: mkr Date: Fri, 8 Dec 2006 09:27:35 +0000 (+0000) Subject: Fix for bug IPAL13602 : wrong save of animation pictures. X-Git-Tag: V3_2_4~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd2d404efea4580bb7344a08c5c9311b705b121b;p=modules%2Fvisu.git Fix for bug IPAL13602 : wrong save of animation pictures. --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 205e9fea..7e2027e8 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1230,6 +1230,8 @@ void VISU_TimeAnimation::saveImages( int theFieldId, aFile += aName; aFile += "."; aFile += myDumpFormat.lower(); + ProcessVoidEvent(new TVoidMemFunEvent + (myView,&SVTK_ViewWindow::RefreshDumpImage)); // IPAL13602 ProcessEvent(new TMemFun2ArgEvent (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(myView,&SVTK_ViewWindow::RefreshDumpImage)); // IPAL13602 QImage img = ProcessEvent(new TMemFunEvent(aView,&SUIT_ViewWindow::dumpView)); if (!img.isNull()) { int width = img.width(); width = (width/16)*16;