From 6c1c3c347825a263faf55bdf426382f98c84da16 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 26 Aug 2020 14:59:29 +0000 Subject: [PATCH] EgtExecutor : - corrette funzioni ExeAddCurveCompoLine, ExeAddCurveCompoArcTg e ExeAddCurveCompoArc2P che non portavano in locale alla curva il punto finale. --- EXE_GdbModifyCurve.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EXE_GdbModifyCurve.cpp b/EXE_GdbModifyCurve.cpp index f6f2674..4d60e12 100644 --- a/EXE_GdbModifyCurve.cpp +++ b/EXE_GdbModifyCurve.cpp @@ -1500,7 +1500,7 @@ ExeAddCurveCompoLine( int nId, const Point3d& ptP, int nRefType) // porto in locale il nuovo punto Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ; // eseguo la modifica - bOk = bOk && pCompo->AddLine( ptP) ; + bOk = bOk && pCompo->AddLine( ptPL) ; ExeSetModified() ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { @@ -1530,7 +1530,7 @@ ExeAddCurveCompoArcTg( int nId, const Point3d& ptP, int nRefType) // porto in locale il nuovo punto Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ; // eseguo la modifica - bOk = bOk && pCompo->AddArcTg( ptP) ; + bOk = bOk && pCompo->AddArcTg( ptPL) ; ExeSetModified() ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) { @@ -1561,7 +1561,7 @@ ExeAddCurveCompoArc2P( int nId, const Point3d& ptMid, const Point3d& ptP, int nR Point3d ptMidL = GetPointLocal( pGeomDB, ptMid, nRefType, frLoc) ; Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ; // eseguo la modifica - bOk = bOk && pCompo->AddArc2P( ptMidL, ptP) ; + bOk = bOk && pCompo->AddArc2P( ptMidL, ptPL) ; ExeSetModified() ; // se richiesto, salvo il comando Lua equivalente if ( IsCmdLog()) {