From 3c515b56a25d156b89388d2caf81c4085c3e540f Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 24 Mar 2006 14:55:51 +0000 Subject: [PATCH] Fix for Bug IPAL11993: TC: Exception after closing animation dialog --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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(); } } -- 2.39.2