From 1b6708daacac107adb7b7a34d85e8dae71e116d5 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 12 Dec 2008 14:51:59 +0000 Subject: [PATCH] Bug 0020074: EDF VISU: Saving picture of animation crashes SALOME. --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)), -- 2.39.2