From: mkr Date: Tue, 24 Jun 2008 07:24:04 +0000 (+0000) Subject: Modification to avoid SIGSEGV on "Setup Animation" -> Properties if there is no anima... X-Git-Tag: V4_1_0_maintainance_20080626~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c912038dd072a588cb83e33b8e4938941cf6b51;p=modules%2Fvisu.git Modification to avoid SIGSEGV on "Setup Animation" -> Properties if there is no animation data (see IPAL13188). --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 234ec7af..2eddab33 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -910,7 +910,7 @@ void SetupDlg::onPreferencesDlg() } } - if(!aData.myNbFrames || !aData.myPrs[0]){ + if(!aData.myNbFrames || aData.myPrs.empty() || !aData.myPrs[0]){ QApplication::restoreOverrideCursor(); SUIT_MessageBox::warn1(this, tr("ERROR"),