diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-09 10:39:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-09 10:39:43 +0300 |
commit | 7a0ad20e5ffa330183b8135a815f8d2cbd7ccc68 (patch) | |
tree | 4fd37f612097c5e502663df099f4e1ebd7054b0a /source/blender/blenkernel | |
parent | 1355d9cc8cbc84e8153008c12cd09146f8c9d26c (diff) |
Fix mistake in recent fix for text editor overflow
Diffstat (limited to 'source/blender/blenkernel')
-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 5f59666a28a..5771eb053f7 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1514,7 +1514,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 > tb_scale.w) { /* 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; |