fix [#35072] View name of 3Dview is clamped in Japanese
authorCampbell Barton <ideasman42@gmail.com>
Thu, 25 Apr 2013 08:13:46 +0000 (08:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 25 Apr 2013 08:13:46 +0000 (08:13 +0000)
just increase size of string to allow for utf8 chars.

source/blender/editors/space_view3d/view3d_draw.c

index 776b1a0bbb31cb5f23a452fc66922b02284d14c4..b30f13dd81b4f050686c28354be14ce528f8d026 100644 (file)
@@ -853,7 +853,7 @@ static void draw_viewport_name(ARegion *ar, View3D *v3d, rcti *rect)
        const char *name = view3d_get_name(v3d, rv3d);
        /* XXX 24 may be a bit small for unicode languages (Chinese in utf-8...) */
 #ifdef WITH_INTERNATIONAL
-       char tmpstr[32];
+       char tmpstr[64];
 #else
        char tmpstr[24];
 #endif