If you set the value of undosteps in userprefs to zero, and tried to save
defaults, the value would get reset to 32. Caused by out-of-place version
patch.
This commit is contained in:
Joshua Leung
2007-01-12 05:29:59 +00:00
parent 99d16b99cd
commit 27266b22c1

View File

@@ -209,6 +209,7 @@ static void init_userdef_file(void)
bTheme *btheme;
U.uiflag |= USER_GLOBALUNDO;
if (U.undosteps==0) U.undosteps=32;
for(btheme= U.themes.first; btheme; btheme= btheme->next) {
/* check for alpha==0 is safe, then color was never set */
@@ -353,8 +354,6 @@ static void init_userdef_file(void)
}
}
if (U.undosteps==0) U.undosteps=32;
/* GL Texture Garbage Collection (variable abused above!) */
if (U.textimeout == 0) {
U.texcollectrate = 60;