Fix T77609: Scale to Fit Text Box fails when text is too narrow
Caused by error in fix for T75965 (83d9ba341e
).
This commit is contained in:
parent
f326b6a18e
commit
70a27d0a63
Notes:
blender-bot
2023-02-14 08:45:12 +01:00
Referenced by issue #77609, Scale to Fit Text Box Option fails when using too little text
|
@ -1502,7 +1502,7 @@ static bool vfont_to_curve(Object *ob,
|
|||
}
|
||||
else if (tb_scale.h == 0.0f) {
|
||||
/* This is a horizontal overflow. */
|
||||
if (longest_line_length != 0.0f) {
|
||||
if (longest_line_length > 0.0f) {
|
||||
/* We make sure longest line before it broke can fit here. */
|
||||
float scale_to_fit = tb_scale.w / longest_line_length;
|
||||
scale_to_fit -= FLT_EPSILON;
|
||||
|
|
Loading…
Reference in New Issue