[Bf-blender-cvs] [5909e310877] filebrowser_redesign: Fix crash with narrow file list rendering
Julian Eisel
noreply at git.blender.org
Thu Jul 25 02:45:25 CEST 2019
Commit: 5909e310877bdf69755fca27d4b5a214db5fa2fc
Author: Julian Eisel
Date: Thu Jul 25 02:40:53 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rB5909e310877bdf69755fca27d4b5a214db5fa2fc
Fix crash with narrow file list rendering
===================================================================
M source/blender/editors/space_file/file_draw.c
===================================================================
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 203c360c958..fdd70a7d6e5 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -402,7 +402,7 @@ static void file_draw_string(int sx,
rcti rect;
char fname[FILE_MAXFILE];
- if (string[0] == '\0') {
+ if (string[0] == '\0' || width < 1) {
return;
}
More information about the Bf-blender-cvs
mailing list