From c4431d3ed1959fcce26817d5c7b693548accdc9c Mon Sep 17 00:00:00 2001 From: nri Date: Mon, 19 Apr 2004 07:56:12 +0000 Subject: [PATCH] NRI : fixed bug 5725. --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 9927194b..5b0779f1 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -242,17 +242,20 @@ void SetupDlg::onPreferencesDlg() { myAnimator->generatePresentations(myFieldLst->currentItem()); QApplication::restoreOverrideCursor(); -#define EDITPRS(TYPE, DLG) \ - { \ - DLG* aDlg = new DLG(); \ - aDlg->initFromPrsObject(dynamic_cast(aData.myPrs.at(0))); \ - if (aDlg->exec()) { \ - for (int i = 0; i < aData.myNbFrames; i++) \ - aDlg->storeToPrsObject(dynamic_cast(aData.myPrs.at(i))); \ - } \ - delete aDlg; \ - } - +// BUG VISU5725 : Compatibility gcc 2.95 +// #define EDITPRS(TYPE, DLG) \ +// { \ +// DLG* aDlg = new DLG(); \ +// aDlg->initFromPrsObject(dynamic_cast(aData.myPrs.at(0))); \ +// if (aDlg->exec()) { \ +// for (int i = 0; i < aData.myNbFrames; i++) \ +// aDlg->storeToPrsObject(dynamic_cast(aData.myPrs.at(i))); \ +// } \ +// delete aDlg; \ +// } + + +#define EDITPRS(TYPE, DLG) {DLG* aDlg = new DLG(); aDlg->initFromPrsObject(dynamic_cast(aData.myPrs[0])); if (aDlg->exec()) { for (int i = 0; i < aData.myNbFrames; i++) aDlg->storeToPrsObject(dynamic_cast(aData.myPrs[i])); } delete aDlg;} switch (myTypeCombo->currentItem()) { case 0: //Scalar Map -- 2.39.2