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:
authorMika Saari <mika.saari@wipsl.com>2006-01-23 15:52:53 +0300
committerMika Saari <mika.saari@wipsl.com>2006-01-23 15:52:53 +0300
commit913c0bc0c7376b7047884f8bdacb0f73de1120d9 (patch)
treeab617d0a044d8c6308b9f7c4cc15fae6162407f2 /source/blender/src/interface_draw.c
parent4be671ec70fe4ce8673512427456ded37f224f69 (diff)
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.
Diffstat (limited to 'source/blender/src/interface_draw.c')
-rw-r--r--source/blender/src/interface_draw.c4
1 files changed, 4 insertions, 0 deletions
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);