Changes the logic behind the isPositionValid function.
@@ -200,11 +200,11 @@ public class Component {
* Whether or not the specified position is within the bounds of the component.
*/
protected boolean isPositionValid(final int columnIndex, final int rowIndex) {
- if (rowIndex < 0 || rowIndex >= boundingBox.getHeight()) {
+ if (rowIndex < 0 || rowIndex > boundingBox.getHeight()) {
return false;
}
- if (columnIndex < 0 || columnIndex >= boundingBox.getWidth()) {
+ if (columnIndex < 0 || columnIndex > boundingBox.getWidth()) {
return false;
}
