From 913c0bc0c7376b7047884f8bdacb0f73de1120d9 Mon Sep 17 00:00:00 2001 From: Mika Saari Date: Mon, 23 Jan 2006 12:52:53 +0000 Subject: [PATCH] Fixing the user interface bug when unicode font area list is exited without selecting any area. This caused the area to be from 0 to 0. Now if no any area selected, the whole area from 0 to 0xffff is shown. --- source/blender/src/interface_draw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/src/interface_draw.c b/source/blender/src/interface_draw.c index 8c5640fdf0d..877bbedc2d9 100644 --- a/source/blender/src/interface_draw.c +++ b/source/blender/src/interface_draw.c @@ -1756,6 +1756,10 @@ static void ui_draw_but_CHARTAB(uiBut *but) PackedFile *pf; int result = 0; + /* Category list exited without selecting the area */ + if(G.charmax == 0) + G.charmax = 0xffff; + /* Calculate the size of the button */ width = abs(but->x2 - but->x1); height = abs(but->y2 - but->y1);