EgtExecutor 1.6h5 :
- corretta trasformazioni stringhe in stringhe Lua con ' - aggiunta gestione import BTL.
This commit is contained in:
+5
-15
@@ -214,11 +214,9 @@ ExeCreateText( int nParentId, const Point3d& ptP,
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLuaText = sText ;
|
||||
ReplaceString( sLuaText, "'", "\\'") ;
|
||||
string sLua = "EgtText(" + IdToString( nParentId) + ",{" +
|
||||
ToString( ptP) + "},'" +
|
||||
sLuaText + "'," +
|
||||
StringToLuaString( sText) + "'," +
|
||||
ToString( dH) + "," +
|
||||
RefTypeToString( nRefType) + ")" +
|
||||
" -- Id=" + ToString( nId) ;
|
||||
@@ -253,15 +251,11 @@ ExeCreateTextEx( int nParentId, const Point3d& ptP, double dAngRotDeg,
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLuaText = sText ;
|
||||
ReplaceString( sLuaText, "'", "\\'") ;
|
||||
string sLuaFont = sFont ;
|
||||
ReplaceString( sLuaFont, "'", "\\'") ;
|
||||
string sLua = "EgtTextEx(" + IdToString( nParentId) + ",{" +
|
||||
ToString( ptP) + "}," +
|
||||
ToString( dAngRotDeg) + ",'" +
|
||||
sLuaText + "','" +
|
||||
sLuaFont + "'," +
|
||||
StringToLuaString( sText) + "','" +
|
||||
StringToLuaString( sFont) + "'," +
|
||||
( bItalic ? "'I'" : "'S'") + "," +
|
||||
ToString( dH) + "," +
|
||||
RefTypeToString( nRefType) + ")" +
|
||||
@@ -298,15 +292,11 @@ ExeCreateTextAdv( int nParentId, const Point3d& ptP, double dAngRotDeg,
|
||||
ExeSetModified() ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLuaText = sText ;
|
||||
ReplaceString( sLuaText, "'", "\\'") ;
|
||||
string sLuaFont = sFont ;
|
||||
ReplaceString( sLuaFont, "'", "\\'") ;
|
||||
string sLua = "EgtTextAdv(" + IdToString( nParentId) + ",{" +
|
||||
ToString( ptP) + "}," +
|
||||
ToString( dAngRotDeg) + ",'" +
|
||||
sLuaText + "','" +
|
||||
sLuaFont + "'," +
|
||||
StringToLuaString( sText) + "','" +
|
||||
StringToLuaString( sFont) + "'," +
|
||||
ToString( nW) + "," +
|
||||
( bItalic ? "'I'" : "'S'") + "," +
|
||||
ToString( dH) + "," +
|
||||
|
||||
Reference in New Issue
Block a user