From: enk Date: Fri, 24 Mar 2006 14:55:51 +0000 (+0000) Subject: Fix for Bug IPAL11993: X-Git-Tag: mergeto_OCC_debug_for_3_2_0b1_07Apr06~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c515b56a25d156b89388d2caf81c4085c3e540f;p=modules%2Fvisu.git Fix for Bug IPAL11993: TC: Exception after closing animation dialog --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index de4de17e..92a3b4ab 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -285,13 +285,11 @@ void ArrangeDlg::acceptAnimation() } } else { QApplication::setOverrideCursor( Qt::waitCursor ); - FieldData& aData = myAnimator->getFieldData(0); + FieldData& aData = myAnimator->getFieldData(myFieldLst->currentItem()); if (aData.myPrs.empty()) - myAnimator->generatePresentations(0); - VISU_Actor* aActor = aData.myPrs[0]->CreateActor(); + myAnimator->generatePresentations(myFieldLst->currentItem()); float aBounds[6]; - aActor->GetBounds(aBounds); - aActor->Delete(); + aData.myPrs[0]->GetBounds(aBounds); float aDist = 0; int aAxis = getAxis(); switch (aAxis) { @@ -1170,6 +1168,7 @@ VisuGUI_TimeAnimationDlg::~VisuGUI_TimeAnimationDlg() if(myAnimator != NULL){ delete myAnimator; myAnimator = NULL; + VISU::GetActiveViewWindow(myModule)->Repaint(); } }