fix potential uninitialized rot, flip variables for text rotation in load_sym_def()
This commit is contained in:
parent
f0b4ab060a
commit
d0b659c455
|
|
@ -1802,6 +1802,7 @@ int load_sym_def(const char *name, FILE *embed_fd)
|
|||
&tt[i].flip, &tt[i].xscale, &tt[i].yscale);
|
||||
if (level>0) {
|
||||
const char* tmp = translate2(lcc, level, tt[i].txt_ptr);
|
||||
rot = lcc[level].rot; flip = lcc[level].flip; /* >>>>> */
|
||||
if (tmp) my_strdup(651, &tt[i].txt_ptr, tmp);
|
||||
ROTATION(0.0, 0.0, tt[i].x0, tt[i].y0, rx1, ry1);
|
||||
tt[i].x0 = lcc[level].x0 + rx1; tt[i].y0 = lcc[level].y0 + ry1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue