mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
PAL10927
This commit is contained in:
parent
277c689f7f
commit
05369767f7
@ -189,7 +189,7 @@ bool StdMeshersGUI_NbSegmentsCreator::readParamsFromHypo( NbSegmentsHypothesisDa
|
|||||||
StdMeshers::StdMeshers_NumberOfSegments::_narrow( hypothesis() );
|
StdMeshers::StdMeshers_NumberOfSegments::_narrow( hypothesis() );
|
||||||
|
|
||||||
HypothesisData* data = SMESH::GetHypothesisData( hypType() );
|
HypothesisData* data = SMESH::GetHypothesisData( hypType() );
|
||||||
h_data.myName = isCreation() && data ? data->Label : QString();
|
h_data.myName = isCreation() && data ? data->Label : "";
|
||||||
|
|
||||||
h_data.myNbSeg = (int) h->GetNumberOfSegments();
|
h_data.myNbSeg = (int) h->GetNumberOfSegments();
|
||||||
int distr = (int) h->GetDistrType();
|
int distr = (int) h->GetDistrType();
|
||||||
@ -224,7 +224,9 @@ bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothe
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if( isCreation() )
|
||||||
SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.latin1() );
|
SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.latin1() );
|
||||||
|
|
||||||
h->SetNumberOfSegments( h_data.myNbSeg );
|
h->SetNumberOfSegments( h_data.myNbSeg );
|
||||||
int distr = h_data.myDistrType;
|
int distr = h_data.myDistrType;
|
||||||
h->SetDistrType( distr );
|
h->SetDistrType( distr );
|
||||||
@ -254,7 +256,7 @@ bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothe
|
|||||||
|
|
||||||
bool StdMeshersGUI_NbSegmentsCreator::readParamsFromWidgets( NbSegmentsHypothesisData& h_data ) const
|
bool StdMeshersGUI_NbSegmentsCreator::readParamsFromWidgets( NbSegmentsHypothesisData& h_data ) const
|
||||||
{
|
{
|
||||||
h_data.myName = myName ? myName->text() : QString();
|
h_data.myName = myName ? myName->text() : "";
|
||||||
h_data.myNbSeg = myNbSeg->value();
|
h_data.myNbSeg = myNbSeg->value();
|
||||||
h_data.myDistrType = myDistr->currentItem();
|
h_data.myDistrType = myDistr->currentItem();
|
||||||
h_data.myConv = myConv->id( myConv->selected() );
|
h_data.myConv = myConv->id( myConv->selected() );
|
||||||
|
Loading…
Reference in New Issue
Block a user