From a443219c7f0ec70d04dcb45f5b95021cd18fe81c Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 29 Oct 2018 11:20:06 +0000 Subject: [PATCH] =?UTF-8?q?EgtMachKernel=20:=20-=20su=20SetCurrMachining?= =?UTF-8?q?=20si=20=C3=A8=20tornati=20a=20non=20impostare=20la=20fase=20de?= =?UTF-8?q?lla=20lavorazione=20(annullata=20modifica=204055=20punto=202)?= =?UTF-8?q?=20-=20modifica=20a=20CopyMachining=20per=20adattarsi=20a=20mod?= =?UTF-8?q?ifica=20precedente.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MachMgrOperations.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MachMgrOperations.cpp b/MachMgrOperations.cpp index d59eacc..a02d357 100644 --- a/MachMgrOperations.cpp +++ b/MachMgrOperations.cpp @@ -589,8 +589,10 @@ MachMgr::SetCurrMachining( int nId) return false ; // gli imposto il manager generale delle lavorazioni pMch->Init( this) ; - // imposto la fase della lavorazione come corrente - SetCurrPhase( pMch->GetPhase()) ; + // non imposto la fase della lavorazione come corrente : + // spesso si vuole solo conoscere alcuni parametri + // su Preview, Apply e Update viene temporanemente fatto + // in ogni caso si puņ impostare direttamente // imposto la lavorazione corrente m_nCurrMachiningId = nId ; return true ; @@ -732,6 +734,9 @@ MachMgr::CopyMachining( const string& sName, const string& sSouName) int nSouId = GetOperationId( sSouName) ; if ( ! SetCurrMachining( nSouId)) return GDB_ID_NULL ; + // ne imposto la fase di lavorazione come corrente + if ( ! SetCurrPhase( GetOperationPhase( m_nCurrMachiningId))) + return GDB_ID_NULL ; // nessuna lavorazione corrente ResetCurrMachining() ; // recupero il gruppo delle operazioni nella macchinata corrente