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.
This commit is contained in:
Mika Saari 2006-01-23 12:52:53 +00:00
parent 4be671ec70
commit 913c0bc0c7

@ -1756,6 +1756,10 @@ static void ui_draw_but_CHARTAB(uiBut *but)
PackedFile *pf; PackedFile *pf;
int result = 0; int result = 0;
/* Category list exited without selecting the area */
if(G.charmax == 0)
G.charmax = 0xffff;
/* Calculate the size of the button */ /* Calculate the size of the button */
width = abs(but->x2 - but->x1); width = abs(but->x2 - but->x1);
height = abs(but->y2 - but->y1); height = abs(but->y2 - but->y1);