X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSMESHGUI%2FSMESHGUI_NbSegmentsDlg.cxx;h=a4d05a749df233fd2d4f98238e4ce13af851d506;hb=faa1c8f2bc27c5244a34fe03584826de59cb17b3;hp=70bd8497445d7a9ea71a6af1953a100f2ef1b46a;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx b/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx index 70bd84974..a4d05a749 100644 --- a/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NbSegmentsDlg.cxx @@ -59,7 +59,7 @@ using namespace std; SMESHGUI_NbSegmentsDlg::SMESHGUI_NbSegmentsDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) { - QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_DLG_NB_SEGMENTS"))); + QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_DLG_NB_SEGMENTS"))); if ( !name ) setName( "SMESHGUI_NbSegmentsDlg" ); @@ -242,7 +242,8 @@ void SMESHGUI_NbSegmentsDlg::ClickOnApply() case 0 : { myNbSeg = SpinBox_NbSeg->value() ; - mySMESHGUI->CreateNbSegments( "NumberOfSegments", myNameHypothesis, myNbSeg ); + int nbSegInt = int(myNbSeg); + mySMESHGUI->CreateNbSegments( "NumberOfSegments", myNameHypothesis, nbSegInt ); break ; } }