diff --git a/word_cloud/lib/word_cloud_setting.dart b/word_cloud/lib/word_cloud_setting.dart index cf5a9de..8810ee1 100644 --- a/word_cloud/lib/word_cloud_setting.dart +++ b/word_cloud/lib/word_cloud_setting.dart @@ -213,7 +213,7 @@ class WordCloudSetting { return false; } for (int i = x.toInt(); i < x.toInt() + w; i++) { - if (map[i][y + h - 1] == 1) { + if (map[i][(y + h - 1).toInt()] == 1) { return false; } if (map[i][y + 1] == 1) {