Fixed bug in the settings validation check, thanks to Jerome for reporting this!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6889 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2b7853fb07
commit
482aa308c1
@ -121,7 +121,7 @@ Settings::Settings()
|
||||
|
||||
if (settings.base_type == kHexBase || settings.base_type == kDecimalBase)
|
||||
fMessage.ReplaceInt32("base_type", B_LENDIAN_TO_HOST_INT32(settings.base_type));
|
||||
if (settings.font_size >= 0 || settings.font_size <= 72)
|
||||
if (settings.font_size >= 0 && settings.font_size <= 72)
|
||||
fMessage.ReplaceFloat("font_size", float(B_LENDIAN_TO_HOST_INT32(settings.font_size)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user