Commit 81f59fd7 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

letter-in-word, fix crash on android

parent 65ae27c3
......@@ -355,6 +355,9 @@ ActivityBase {
var sx
var sy
if(x_ <= 0 || y_ <= 0 || n_ <= 0)
return 10; // return default value that will be erased later
var px = Math.ceil(Math.sqrt(n_ * x_ / y_));
if (Math.floor(px * y_ / x_) * px < n_) {
sx = y_ / Math.ceil(px * y_ / x_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment