mirror of
https://github.com/AppleCommander/bastools.git
synced 2025-01-18 08:30:48 +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…
x
Reference in New Issue
Block a user