diff options
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 54f2492af93..34bb328bde0 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -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; |