Fix T68658: Text offset makes scale to fit not to work

Differential Revision: https://developer.blender.org/D5484
This commit is contained in:
Dalai Felinto
2019-08-14 15:08:25 -03:00
parent 5ff8fcfa72
commit cb7ead2e3b

View File

@@ -955,7 +955,7 @@ static bool vfont_to_curve(Object *ob,
}
}
current_line_length += xof;
current_line_length += xof - MARGIN_X_MIN;
if (ct->dobreak) {
current_line_length += twidth;
}
@@ -1026,7 +1026,7 @@ static bool vfont_to_curve(Object *ob,
}
ct++;
}
current_line_length += xof + twidth;
current_line_length += xof + twidth - MARGIN_X_MIN;
longest_line_length = MAX2(current_line_length, longest_line_length);
cu->lines = 1;