Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
277c689
)
PAL10927
author
asl
<asl@opencascade.com>
Wed, 14 Dec 2005 09:50:37 +0000
(09:50 +0000)
committer
asl
<asl@opencascade.com>
Wed, 14 Dec 2005 09:50:37 +0000
(09:50 +0000)
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx
b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx
index 8916a619cba18fac41d527e41a426d97a345717a..a071169aea30d1d02833fec9ac8f5d6970cb6fcd 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx
+++ b/
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx
@@
-189,7
+189,7
@@
bool StdMeshersGUI_NbSegmentsCreator::readParamsFromHypo( NbSegmentsHypothesisDa
StdMeshers::StdMeshers_NumberOfSegments::_narrow( hypothesis() );
HypothesisData* data = SMESH::GetHypothesisData( hypType() );
StdMeshers::StdMeshers_NumberOfSegments::_narrow( hypothesis() );
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();
int distr = (int) h->GetDistrType();
h_data.myNbSeg = (int) h->GetNumberOfSegments();
int distr = (int) h->GetDistrType();
@@
-224,7
+224,9
@@
bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothe
bool ok = true;
try
{
bool ok = true;
try
{
- SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.latin1() );
+ if( isCreation() )
+ SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.latin1() );
+
h->SetNumberOfSegments( h_data.myNbSeg );
int distr = h_data.myDistrType;
h->SetDistrType( distr );
h->SetNumberOfSegments( h_data.myNbSeg );
int distr = h_data.myDistrType;
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.myDistrType = myDistr->currentItem();
h_data.myConv = myConv->id( myConv->selected() );
h_data.myNbSeg = myNbSeg->value();
h_data.myDistrType = myDistr->currentItem();
h_data.myConv = myConv->id( myConv->selected() );