Skip to content

Commit 4ff6cbe

Browse files
author
Rick-Rainer Ludwig
committed
Fixed SpotBugs issue.
1 parent 44056db commit 4ff6cbe

File tree

1 file changed

+4
-4
lines changed
  • charts/src/main/java/com/puresoltechnologies/javafx/charts/plots

1 file changed

+4
-4
lines changed

charts/src/main/java/com/puresoltechnologies/javafx/charts/plots/PlotCanvas.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ private void unregisterPlot(Plot<?, ?, ?> plot) {
362362
ObservableList<Plot<?, ?, ?>> affectedByAxis = affectedPlots.get(axis);
363363
if (affectedByAxis != null) {
364364
affectedByAxis.remove(plot);
365-
}
366-
if (affectedByAxis.isEmpty()) {
367-
affectedPlots.remove(axis);
368-
axisRenderers.remove(axis);
365+
if (affectedByAxis.isEmpty()) {
366+
affectedPlots.remove(axis);
367+
axisRenderers.remove(axis);
368+
}
369369
}
370370
}
371371

0 commit comments

Comments
 (0)