Fixing isEmpty method. #16.

This commit is contained in:
Rob Greene 2018-06-24 12:20:44 -05:00
parent 1ee7cc0d00
commit cb85e065c3

View File

@ -110,13 +110,13 @@ public class BitmapShape implements Shape {
@Override
public boolean isEmpty() {
boolean isEmpty = false;
boolean hasData = false;
for (List<Boolean> row : grid) {
for (Boolean plot : row) {
isEmpty |= plot;
hasData |= plot;
}
}
return isEmpty;
return !hasData;
}
@Override