Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-06-09 10:39:43 +0300
committerJeroen Bakker <jeroen@blender.org>2020-07-29 11:06:51 +0300
commit46c3ef571566a531b94dfac121f10ca084f0aa65 (patch)
treedba936d3982cf5f1c57a1ee277fbd3c5e46bd90a /source
parent9a4d51c5d98f1c661c475f54a3fa4e41735936ec (diff)
Fix mistake in recent fix for text editor overflow
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c
index 5b45a916834..b0bc5cf7e0f 100644
--- a/source/blender/blenkernel/intern/font.c
+++ b/source/blender/blenkernel/intern/font.c
@@ -1501,7 +1501,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;