mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-31 09:40:32 +05:00
BUG SWP13024
This commit is contained in:
parent
e91811c2ef
commit
698ca213bf
@ -1011,10 +1011,17 @@ void SMESHGUI_MeshOp::onAlgoSelected( const int theIndex,
|
|||||||
// set new available algoritms
|
// set new available algoritms
|
||||||
availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], prevAlgo );
|
availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], prevAlgo );
|
||||||
HypothesisData* soleCompatible = 0;
|
HypothesisData* soleCompatible = 0;
|
||||||
if ( anAvailable.count() == 1 )
|
|
||||||
|
// bug SWP13024 need save following state
|
||||||
|
bool onlyOne = ( anAvailable.count() == 1 );
|
||||||
|
if ( onlyOne )
|
||||||
soleCompatible = myAvailableHypData[dim][Algo][0];
|
soleCompatible = myAvailableHypData[dim][Algo][0];
|
||||||
if ( dim == aTopDim && prevAlgo ) // all available algoritms should be selectable any way
|
if ( dim == aTopDim && prevAlgo ) // all available algoritms should be selectable any way
|
||||||
|
{
|
||||||
availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], 0 );
|
availableHyps( dim, Algo, anAvailable, myAvailableHypData[dim][Algo], 0 );
|
||||||
|
if ( onlyOne )
|
||||||
|
soleCompatible = 0;
|
||||||
|
}
|
||||||
myDlg->tab( dim )->setAvailableHyps( Algo, anAvailable );
|
myDlg->tab( dim )->setAvailableHyps( Algo, anAvailable );
|
||||||
noCompatible = anAvailable.isEmpty();
|
noCompatible = anAvailable.isEmpty();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user