:octocat: clamp the module scale value between 1 and 50

This commit is contained in:
smiley
2026-02-10 18:30:55 +01:00
parent 755e075400
commit 2f8cec4dbb
+7
View File
@@ -547,6 +547,13 @@ trait QROptionsTrait{
$this->eccLevel = $eccLevel;
}
/**
* clamps the module scale at a minimum of 1 and a maximum of 50
*/
protected function set_scale(int $scale):void{
$this->scale = max(1, min($scale, 50));
}
/**
* sets/clamps the quiet zone size
*/