if( !myCurve )
return;
stopActionMode();
- myCurve->join( 0, myCurve->getNbSections() );
+ myCurve->join( 0, myCurve->getNbSections()-1 );
mySectionView->reset();
updateActionsStates();
updateUndoRedo();
if ( myDragStarted ) {
bool isDragged = myDragged;
CurveCreator_ICurve::SectionToPointList aDraggedPoints;
- QMap<CurveCreator_ICurve::SectionToPoint, std::deque< float >> anInitialDragPointsCoords;
+ QMap<CurveCreator_ICurve::SectionToPoint, std::deque< float > > anInitialDragPointsCoords;
if ( myDragged ) {
aDraggedPoints = myDragPoints;
anInitialDragPointsCoords = myInitialDragPointsCoords;
if ( !isRowLimit ) {
bool isBlocked = myLocalPointView->blockSignals(true);
- myLocalPointView->setRowCount( 0 );
- CurveCreator_ICurve::SectionToPointList::const_iterator anIt = myLocalPoints.begin(),
- aLast = myLocalPoints.end();
- for ( ; anIt != aLast; anIt++ )
- myLocalPointView->addLocalPointToTable( *anIt );
+
+ myLocalPointView->setLocalPointsToTable( myLocalPoints );
myLocalPointView->blockSignals( isBlocked );
}