Fixing the user interface bug when unicode font area list is exited
authorMika Saari <mika.saari@wipsl.com>
Mon, 23 Jan 2006 12:52:53 +0000 (12:52 +0000)
committerMika Saari <mika.saari@wipsl.com>
Mon, 23 Jan 2006 12:52:53 +0000 (12:52 +0000)
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

index 8c5640fdf0d8135dd02d72d4c0635aba19e1e71c..877bbedc2d9036f51450dd5d7dd66b0fa13abc68 100644 (file)
@@ -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);