From: dmv Date: Thu, 27 Nov 2008 07:28:29 +0000 (+0000) Subject: IPAL20123 calling of "Sweep" leads to infinite loop X-Git-Tag: V5_1_0rc2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=380fb5a635829f5ccdc3d28b5dac8b22ec42e69f;p=modules%2Fvisu.git IPAL20123 calling of "Sweep" leads to infinite loop --- 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 );