return res;
}
-//! Join range of sections to one section (join all sections if -1 is passed in one of arguments)
+//! Join range of sections to one section (join all sections if -1 is passed in theISectionFrom argument)
bool CurveCreator_Curve::join( const int theISectionTo,
const int theISectionFrom )
{
+ //TODO
bool res = false;
- if (mySections.size() >= 2 &&
- ( theISectionTo != theISectionFrom || (theISectionTo == -1 && theISectionFrom == -1) )) {
+ if ( theISectionTo != theISectionFrom ) {
startOperation();
- int aISectionTo = getNbSections()-1;
- int aISectionFrom = 0;
if (addEmptyDiff())
- myListDiffs.back().init(this, CurveCreator_Operation::Join, aISectionTo, aISectionFrom);
+ myListDiffs.back().init(this, CurveCreator_Operation::Join, theISectionTo, theISectionFrom);
- res = joinInternal( aISectionTo, aISectionFrom );
+ res = joinInternal( theISectionTo, theISectionFrom );
finishOperation();
}