Fixed allowing more than 6 scales

It will cause problems if current scale does not persist there.
This commit is contained in:
Eric Kotato 2019-10-08 02:59:04 +03:00
parent 63c12dfb35
commit 724f579465

View file

@ -230,7 +230,7 @@ bool HasCustomScales() {
}
bool AddCustomScale(int scale) {
if (gInterfaceScales.size() > 6) {
if (gInterfaceScales.size() >= 6) {
return false;
}
gInterfaceScales.push_back(style::CheckScale(scale));