[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25685] trunk/blender/source/blender/ windowmanager/intern/wm_operators.c: bugfix [#20510] . blog file causes crash (again rev25592)

Campbell Barton ideasman42 at gmail.com
Sun Jan 3 06:34:54 CET 2010


Revision: 25685
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25685
Author:   campbellbarton
Date:     2010-01-03 06:34:53 +0100 (Sun, 03 Jan 2010)

Log Message:
-----------
bugfix [#20510] .blog file causes crash (again rev25592)

Revision Links:
--------------
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25592

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2010-01-03 05:08:56 UTC (rev 25684)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c	2010-01-03 05:34:53 UTC (rev 25685)
@@ -957,8 +957,12 @@
 	
 	col = uiLayoutColumn(split, 0);
 	uiItemL(col, "Recent", 0);
-	for(recent = G.recent_files.first, i=0; (i<6) && (recent); recent = recent->next, i++)
-		uiItemStringO(col, BLI_last_slash(recent->filename)+1, ICON_FILE_BLEND, "WM_OT_open_mainfile", "path", recent->filename);
+	for(recent = G.recent_files.first, i=0; (i<6) && (recent); recent = recent->next, i++) {
+		char *display_name= BLI_last_slash(recent->filename);
+		if(display_name)	display_name++; /* skip the slash */
+		else				display_name= recent->filename;
+		uiItemStringO(col, display_name, ICON_FILE_BLEND, "WM_OT_open_mainfile", "path", recent->filename);
+	}
 
 	uiItemS(col);
 





More information about the Bf-blender-cvs mailing list