EgtMachKernel 2.3l2 :
- in simulazione aggiunta gestione assi linkati ad altri assi.
This commit is contained in:
+4
-4
@@ -857,7 +857,7 @@ bool
|
||||
ToolsMgr::ExportOneTool( const string& sToolName, Writer& TheWriter, int nCounter, const string& sOutDir) const
|
||||
{
|
||||
// se il tool non esiste nel DB lo ignoro
|
||||
if ( m_suData.find( sToolName) == m_suData.end()){
|
||||
if ( m_suData.find( sToolName) == m_suData.end()) {
|
||||
string sOut = "Warning Export Tool : " + sToolName + " not found. Tool is ignored" ;
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
|
||||
return true ;
|
||||
@@ -865,7 +865,7 @@ ToolsMgr::ExportOneTool( const string& sToolName, Writer& TheWriter, int nCounte
|
||||
|
||||
const ToolData * tData = GetTool( sToolName) ;
|
||||
string sOut ;
|
||||
if ( tData == nullptr){
|
||||
if ( tData == nullptr) {
|
||||
sOut = "Export Tools : Error exporting " + sToolName ;
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
|
||||
return false ;
|
||||
@@ -885,7 +885,7 @@ ToolsMgr::ExportOneTool( const string& sToolName, Writer& TheWriter, int nCounte
|
||||
bOk = ! sOut.empty() && TheWriter.OutText( sOut) ;
|
||||
}
|
||||
|
||||
if ( ! bOk){
|
||||
if ( ! bOk) {
|
||||
sOut = "Export Tools : Error exporting " + sToolName ;
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
|
||||
// visto che non ho salvato correttamente il tool elimino il suo disegno
|
||||
@@ -1155,7 +1155,7 @@ ToolsMgr::CopyToolDraw( const string& sDraw, const string& sOutDraw, const strin
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
|
||||
bOk = false ;
|
||||
}
|
||||
if ( bOk && ! ExeTdbCurrToolDraw( nGenCtx, nToolCtx)) {
|
||||
if ( bOk && ExeTdbCurrToolDraw( nGenCtx, nToolCtx) != 0) {
|
||||
string sOut = " Error : " + sToolName + " CurrToolDraw" ;
|
||||
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
|
||||
bOk = false ;
|
||||
|
||||
Reference in New Issue
Block a user