From 3c912038dd072a588cb83e33b8e4938941cf6b51 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 24 Jun 2008 07:24:04 +0000 Subject: [PATCH] Modification to avoid SIGSEGV on "Setup Animation" -> Properties if there is no animation data (see IPAL13188). --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- 2.39.2