From: akl Date: Fri, 22 Nov 2013 07:06:55 +0000 (+0000) Subject: Fix bug because of interface changing. X-Git-Tag: BR_hydro_v_0_3_1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef81cb950c9cb7506b2d1c5bb9a9160fd4f68d1b;p=modules%2Fhydro.git Fix bug because of interface changing. --- diff --git a/src/HYDROCurveCreator/CurveCreator_Operation.cxx b/src/HYDROCurveCreator/CurveCreator_Operation.cxx index 0d2bb484..083e3323 100644 --- a/src/HYDROCurveCreator/CurveCreator_Operation.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Operation.cxx @@ -384,7 +384,7 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve) theCurve->clearInternal(); break; case CurveCreator_Operation::SetClosed: - theCurve->setClosedInternal((pInt[0] != 0), pInt[1]); + theCurve->setClosedInternal(pInt[1], (pInt[0] != 0)); break; case CurveCreator_Operation::MoveSection: theCurve->moveSectionInternal(pInt[0], pInt[1]); diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index edcdb68c..dc2edf73 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -571,7 +571,7 @@ void CurveCreator_Widget::onModifySection() bool isClosed = myNewSectionEditor->isClosed(); CurveCreator::SectionType aSectType = myNewSectionEditor->getSectionType(); // myCurve->startOperation(); - myCurve->setClosed( isClosed, mySection ); + myCurve->setClosed( mySection, isClosed ); myCurve->setSectionName( mySection , aName.toStdString() ); myCurve->setSectionType( mySection, aSectType ); // myCurve->finishOperation(); @@ -706,7 +706,7 @@ void CurveCreator_Widget::onCloseSections() // myCurve->startOperation(); QList aSelSections = mySectionView->getSelectedSections(); for( int i = 0 ; i < aSelSections.size() ; i++ ){ - myCurve->setClosed(true, aSelSections[i]); + myCurve->setClosed(aSelSections[i], true); mySectionView->sectionChanged(aSelSections[i]); } // myCurve->finishOperation(); @@ -720,7 +720,7 @@ void CurveCreator_Widget::onUncloseSections() // myCurve->startOperation(); QList aSelSections = mySectionView->getSelectedSections(); for( int i = 0 ; i < aSelSections.size() ; i++ ){ - myCurve->setClosed(false, aSelSections[i]); + myCurve->setClosed(aSelSections[i], false); mySectionView->sectionChanged(aSelSections[i]); } // myCurve->finishOperation();