]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Modification to avoid SIGSEGV on "Setup Animation" -> Properties if there is no anima...
authormkr <mkr@opencascade.com>
Tue, 24 Jun 2008 07:24:04 +0000 (07:24 +0000)
committermkr <mkr@opencascade.com>
Tue, 24 Jun 2008 07:24:04 +0000 (07:24 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 234ec7af6e4512ce95c5811dde818d3ca4709906..2eddab33d46b074cee95f7b346e16e4ab4348afb 100644 (file)
@@ -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"),