From c2d2db28cdc1ac6dc24ed05ae7b68f9e70d985e9 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 10 Jul 2019 17:27:55 +0000 Subject: [PATCH] EgtMachKernel : - correzione a RemoveLastPhase per casi "strani". --- MachMgrPhases.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MachMgrPhases.cpp b/MachMgrPhases.cpp index 64d18d6..2acb8e0 100644 --- a/MachMgrPhases.cpp +++ b/MachMgrPhases.cpp @@ -236,7 +236,8 @@ MachMgr::RemoveLastPhase( void) // se era corrente, rendo corrente la precedente if ( m_nCurrPhase == m_nPhasesCount) SetCurrPhase( m_nCurrPhase - 1) ; - -- m_nPhasesCount ; + // ricalcolo il numero delle fasi (per maggior robustezza) + m_nPhasesCount = CalcPhaseCount() ; return true ; }