mirror of
https://github.com/AppleCommander/bastools.git
synced 2025-08-15 11:27:30 +00:00
Fixing isEmpty method. #16.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user