]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug 0020074: EDF VISU: Saving picture of animation crashes SALOME.
authorjfa <jfa@opencascade.com>
Fri, 12 Dec 2008 14:51:59 +0000 (14:51 +0000)
committerjfa <jfa@opencascade.com>
Fri, 12 Dec 2008 14:51:59 +0000 (14:51 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 88da99d57b9ffd86c8e04d734d15ed71cbdc4d6c..1950e856d8a65e5cd3a688950d03544ee5a461a7 100644 (file)
@@ -1670,10 +1670,11 @@ VisuGUI_TimeAnimationDlg::VisuGUI_TimeAnimationDlg (VisuGUI* theModule,
   for (unsigned int i = 0; i < aDumpFormats.count(); i++) {
     myPicsFormat->addItem(aDumpFormats.at(i));
   }
-  if (aDumpFormats.indexOf("jpeg"))
+  if (aDumpFormats.indexOf("jpeg") >= 0)
     myPicsFormat->setCurrentIndex(aDumpFormats.indexOf("jpeg"));
   else
     myPicsFormat->setCurrentIndex(0);
+
   myPicsFormat->setEnabled(false);
   aSaveLay->addWidget(myPicsFormat, 1, 2);
   connect(mySaveCheck, SIGNAL( toggled(bool)),