diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-03 08:01:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-03 08:03:28 +0300 |
commit | 2c7cb8ce59da8b4d9fb9d9128c736e6f6560aa01 (patch) | |
tree | 52b510cb92295887b44faad4fe9723f9e362cd80 /source/blender/editors/space_file/file_draw.c | |
parent | b3d2b035c4f0a31f9b1ee93aee1a8fead8c99f9b (diff) |
Fix UI string clip (reverse search separator char)
The string may have many '|' characters, only the last is clipped.
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 0a9a12efc0b..0e4d8857663 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -310,7 +310,7 @@ static void file_draw_string(int sx, int sy, const char *string, float width, in fs.align = align; BLI_strncpy(fname, string, FILE_MAXFILE); - UI_text_clip_middle_ex(&fs, fname, width, UI_DPI_ICON_SIZE, sizeof(fname), NULL); + UI_text_clip_middle_ex(&fs, fname, width, UI_DPI_ICON_SIZE, sizeof(fname), '\0'); /* no text clipping needed, UI_fontstyle_draw does it but is a bit too strict (for buttons it works) */ rect.xmin = sx; |