From 380fb5a635829f5ccdc3d28b5dac8b22ec42e69f Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 27 Nov 2008 07:28:29 +0000 Subject: [PATCH] IPAL20123 calling of "Sweep" leads to infinite loop --- src/VISUGUI/VisuGUI.cxx | 5 +++-- src/VISUGUI/VisuGUI_Sweep.cxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 7bb0b66f..fa603b2f 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1911,6 +1911,7 @@ VisuGUI ::OnSweep() { mySweep->toggleViewAction()->setChecked(true); + mySweep->onFirst(); mySweep->onPlay(true); } @@ -2995,7 +2996,7 @@ VisuGUI aRule = "selcount=1 and type='VISU::TCUTLINES' and nbNamedChildren=0"; mgr->setRule( action( VISU_CREATE_TABLE ), aRule ); - aRule = "client='VTKViewer' and selcount=1 and ($type in {" + aSimplePrsAll + "})"; + aRule = "selcount=1 and ($type in {" + aSimplePrsAll + "})"; mgr->setRule( action( VISU_SWEEP ), aRule ); aRule = "client='ObjectBrowser' and selcount>0"; @@ -3593,7 +3594,7 @@ void VisuGUI::createPreferences() addPreference( tr( "Generate curves" ), cutLineGr, LightApp_Preferences::Bool, "VISU", "generate_curves" ); // TAB: "Sweep, Animation, 3D Cache" - int animationTab = addPreference( tr( "Animation" ) ); + int animationTab = addPreference( tr( "Sweep, Animation" ) ); { // group: "3D Cache System prefereces" { diff --git a/src/VISUGUI/VisuGUI_Sweep.cxx b/src/VISUGUI/VisuGUI_Sweep.cxx index 38549b5d..e0100527 100644 --- a/src/VISUGUI/VisuGUI_Sweep.cxx +++ b/src/VISUGUI/VisuGUI_Sweep.cxx @@ -151,7 +151,7 @@ VisuGUI_Sweep::VisuGUI_Sweep( VisuGUI* theModule, myIsCycled = new QCheckBox( aNavigationTab ); myIsCycled->setText( tr( "IS_CYCLED" ) ); - myIsCycled->setChecked( true ); + myIsCycled->setChecked( false ); aHBoxLayout->addWidget( myIsCycled ); aVBoxLayout->addLayout( aHBoxLayout ); -- 2.39.2