Skip to content

Commit cb03284

Browse files
committed
Try to fix code smell
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
1 parent 7812b49 commit cb03284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network-area-diagram/src/main/java/com/powsybl/nad/svg/DefaultEdgeRendering.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private List<Double> findAvailableAngles(List<Double> anglesOtherEdges, int nbAn
200200
}
201201
}
202202

203-
if (nbAngles <= Arrays.stream(nbAvailableSlots).sum() && totalDeltaAvailable >= Math.toRadians(slotAperture)) {
203+
if (nbAngles <= Arrays.stream(nbAvailableSlots).sum() && totalDeltaAvailable > 0) {
204204
// Insert the angles in the "slots" separated by other edges which are large enough
205205
int[] nbInsertedAngles = computeAnglesInsertedNumber(nbAngles, nbAvailableSlots, totalDeltaAvailable, deltaAngles);
206206
return calculateInsertedAngles(nbInsertedAngles, deltaAngles, slotAperture, anglesOtherEdges);

0 commit comments

Comments
 (0)