mirror of
https://github.com/AppleCommander/bastools.git
synced 2024-05-28 19:41:31 +00:00
Fixing isEmpty method. #16.
This commit is contained in:
parent
1ee7cc0d00
commit
cb85e065c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user