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;