1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 11:59:50 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-10-05 14:28:50 +02:00
parent 6504b4f69c
commit f5c60a86a9
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
24 changed files with 171 additions and 126 deletions

View file

@ -218,8 +218,8 @@ char * getCurveString(char * dest, int idx)
idx = -idx;
}
if (ZEXIST(g_model.curves[idx - 1].name))
zchar2str(s, g_model.curves[idx - 1].name, LEN_CURVE_NAME);
if (g_model.curves[idx - 1].name[0])
strAppend(s, g_model.curves[idx - 1].name, LEN_CURVE_NAME);
else
strAppendStringWithIndex(s, STR_CV, idx);
@ -234,8 +234,8 @@ char * getGVarString(char * dest, int idx)
idx = -idx-1;
}
if (ZEXIST(g_model.gvars[idx].name))
zchar2str(s, g_model.gvars[idx].name, LEN_GVAR_NAME);
if (g_model.gvars[idx].name[0])
strAppend(s, g_model.gvars[idx].name, LEN_GVAR_NAME);
else
strAppendStringWithIndex(s, STR_GV, idx+1);