Skip to content

Commit

Permalink
SonarCloud - fix renaming "area" which hides the field declared
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Apr 3, 2023
1 parent 6f5ac4a commit 35ca569
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1079,10 +1079,10 @@ private boolean isEventInSelectionCleaner(NativeAbstractMouseEvent event) {
*/
private boolean isEventInChartArea(NativeAbstractMouseEvent event) {
// gets plugin area
IsArea area = getArea();
IsArea selectionArea = getArea();
// checks if inside
boolean isX = event.getLayerX() >= area.getLeft() && event.getLayerX() <= area.getRight();
boolean isY = event.getLayerY() >= area.getTop() && event.getLayerY() <= area.getBottom();
boolean isX = event.getLayerX() >= selectionArea.getLeft() && event.getLayerX() <= selectionArea.getRight();
boolean isY = event.getLayerY() >= selectionArea.getTop() && event.getLayerY() <= selectionArea.getBottom();
return isX && isY;
}

Expand Down

0 comments on commit 35ca569

Please sign in to comment.