From: jfa Date: Fri, 12 Dec 2008 14:51:59 +0000 (+0000) Subject: Bug 0020074: EDF VISU: Saving picture of animation crashes SALOME. X-Git-Tag: V5_1_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b6708daacac107adb7b7a34d85e8dae71e116d5;p=modules%2Fvisu.git Bug 0020074: EDF VISU: Saving picture of animation crashes SALOME. --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 88da99d5..1950e856 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -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)),