Follow-up 0237acb38f - Fixed toolbar scale

This commit is contained in:
YuSanka 2024-06-25 22:26:11 +02:00 committed by Lukas Matena
parent def6a440cd
commit cbb5aa0a26

View File

@ -6007,7 +6007,7 @@ bool GLCanvas3D::check_toolbar_icon_size(float init_scale, float& new_scale_to_s
new_scale_to_save = std::min(new_scale / max_scale, 1.f);
if (is_custom && new_scale_to_save > init_scale)
return false;
return true; // we need to save new value, so return true
if (is_approx(init_scale, new_scale_to_save, 0.015f) || counter == 0)
return true;
@ -6015,7 +6015,7 @@ bool GLCanvas3D::check_toolbar_icon_size(float init_scale, float& new_scale_to_s
// scale is changed by 1.5% and more
init_scale = new_scale_to_save;
counter--;
return check_toolbar_icon_size(init_scale, new_scale_to_save, counter);
return check_toolbar_icon_size(init_scale, new_scale_to_save, is_custom, counter);
}