]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix bug because of interface changing.
authorakl <akl@opencascade.com>
Fri, 22 Nov 2013 07:06:55 +0000 (07:06 +0000)
committerakl <akl@opencascade.com>
Fri, 22 Nov 2013 07:06:55 +0000 (07:06 +0000)
src/HYDROCurveCreator/CurveCreator_Operation.cxx
src/HYDROCurveCreator/CurveCreator_Widget.cxx

index 0d2bb4846769b8010a9bdcdafc515aa75bb197ca..083e3323084fd1612fbea969b0042bf9f8b6f2d8 100644 (file)
@@ -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]);
index edcdb68c76598678b3d883ca7b3ad6325f28996c..dc2edf73b52d6ef0464732f742abaf028691c74c 100644 (file)
@@ -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<int> 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<int> 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();