Bugfix #5690:
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user