From: nri Date: Mon, 19 Apr 2004 07:56:12 +0000 (+0000) Subject: NRI : fixed bug 5725. X-Git-Tag: Base_Ecole_Ete X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4431d3ed1959fcce26817d5c7b693548accdc9c;p=modules%2Fvisu.git NRI : fixed bug 5725. --- 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