diff --git a/CAvToolSurfTm.cpp b/CAvToolSurfTm.cpp index 7cc0869..d8eff2c 100644 --- a/CAvToolSurfTm.cpp +++ b/CAvToolSurfTm.cpp @@ -175,7 +175,7 @@ CAvToolSurfTm::TestPath( PNTULIST& lPntM, const Vector3d& vtDir, const Vector3d& if ( m_nCurrPnt > nNextPE) { int nRes = ProcessEvents( int( m_nCurrPnt * 100. / m_nTotPnt), 10) ; nNextPE += STEP_PE ; - if ( nRes == 0) + if ( nRes == 1) m_bBreak = true ; } } @@ -223,7 +223,7 @@ CAvToolSurfTm::TestSubPath( int nId, PNTULIST& lPntM, const Vector3d& vtDir, dou // gestione eventi (ogni STEP_PE punti) if (( m_nCurrPnt % STEP_PE) == 0) { int nRes = ProcessEvents( int( m_nCurrPnt * 100. / m_nTotPnt), 0) ; - if ( nRes == 0) + if ( nRes == 1) return false ; } } diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 55d71ab..660af81 100644 Binary files a/EgtGeomKernel.rc and b/EgtGeomKernel.rc differ