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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenfont/intern/blf_font.c')
-rw-r--r--source/blender/blenfont/intern/blf_font.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 92c68ccb85b..f3f3b759e5c 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -341,7 +341,7 @@ void blf_font_boundbox(FontBLF *font, const char *str, rctf *box)
FT_Vector delta;
int pen_x= 0, pen_y= 0;
unsigned int i= 0;
- GlyphBLF **glyph_ascii_table;
+ GlyphBLF **glyph_ascii_table= font->glyph_cache->glyph_ascii_table;
rctf gbox;
@@ -353,7 +353,6 @@ void blf_font_boundbox(FontBLF *font, const char *str, rctf *box)
box->ymax= -32000.0f;
blf_font_ensure_ascii_table(font);
- glyph_ascii_table= font->glyph_cache->glyph_ascii_table;
while (str[i]) {