]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NRI : fixed bug 5725. Base_Ecole_Ete
authornri <nri@opencascade.com>
Mon, 19 Apr 2004 07:56:12 +0000 (07:56 +0000)
committernri <nri@opencascade.com>
Mon, 19 Apr 2004 07:56:12 +0000 (07:56 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 9927194bf6e75f2cb730e129bcee9ed691731a64..5b0779f1dc50b0d9a35454232844b1dd0af32419 100644 (file)
@@ -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<TYPE*>(aData.myPrs.at(0))); \
-      if (aDlg->exec()) { \
-       for (int i = 0; i < aData.myNbFrames; i++) \
-         aDlg->storeToPrsObject(dynamic_cast<TYPE*>(aData.myPrs.at(i))); \
-      } \
-      delete aDlg; \
-    }
-
+// BUG VISU5725 : Compatibility gcc 2.95
+// #define EDITPRS(TYPE, DLG) \
+//     { \
+//       DLG* aDlg = new DLG(); \
+//       aDlg->initFromPrsObject(dynamic_cast<TYPE*>(aData.myPrs.at(0))); \
+//       if (aDlg->exec()) { \
+//     for (int i = 0; i < aData.myNbFrames; i++) \
+//       aDlg->storeToPrsObject(dynamic_cast<TYPE*>(aData.myPrs.at(i))); \
+//       } \
+//       delete aDlg; \
+//     }
+
+
+#define EDITPRS(TYPE, DLG) {DLG* aDlg = new DLG(); aDlg->initFromPrsObject(dynamic_cast<TYPE*>(aData.myPrs[0])); if (aDlg->exec()) { for (int i = 0; i < aData.myNbFrames; i++) aDlg->storeToPrsObject(dynamic_cast<TYPE*>(aData.myPrs[i])); } delete aDlg;}
 
   switch (myTypeCombo->currentItem()) {
   case 0: //Scalar Map