Fix T102213: Invalid font size in the image editor with some scripts
The size could be left at an unexpected value by scripts, causing the wrong size to be shown. Ref D16493
This commit is contained in:
parent
ad39c0f312
commit
b848de7546
Notes:
blender-bot
2023-02-14 07:45:38 +01:00
Referenced by issue #102967, 3.4: Potential candidates for corrective releases Referenced by issue #102213, Font size Screencast Key -VS- Render 1.0.0
|
@ -3531,6 +3531,9 @@ void ED_region_info_draw_multiline(ARegion *region,
|
|||
/* background box */
|
||||
rcti rect = *ED_region_visible_rect(region);
|
||||
|
||||
/* Needed in case scripts leave the font size at an unexpected value, see: T102213. */
|
||||
BLF_size(fontid, style->widget.points * U.dpi_fac);
|
||||
|
||||
/* Box fill entire width or just around text. */
|
||||
if (!full_redraw) {
|
||||
const char **text = &text_array[0];
|
||||
|
|
Loading…
Reference in New Issue