From b0ba8613b23a464d4003036cc125c5d0562e264a Mon Sep 17 00:00:00 2001 From: Jon Harper Date: Fri, 13 May 2022 15:12:03 +0200 Subject: [PATCH] Compute busview topology only for needed voltage level (#391) Signed-off-by: HARPER Jon --- .../sld/util/AbstractBaseVoltageDiagramStyleProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single-line-diagram-core/src/main/java/com/powsybl/sld/util/AbstractBaseVoltageDiagramStyleProvider.java b/single-line-diagram-core/src/main/java/com/powsybl/sld/util/AbstractBaseVoltageDiagramStyleProvider.java index 6107299ba..009964309 100644 --- a/single-line-diagram-core/src/main/java/com/powsybl/sld/util/AbstractBaseVoltageDiagramStyleProvider.java +++ b/single-line-diagram-core/src/main/java/com/powsybl/sld/util/AbstractBaseVoltageDiagramStyleProvider.java @@ -210,7 +210,7 @@ private VoltageLevelInfos getWindingVoltageLevelInfos(Middle3WTNode node, String @Override public List getBusStyles(String busId, VoltageLevelGraph graph) { - Bus bus = network.getBusView().getBus(busId); + Bus bus = network.getVoltageLevel(graph.getVoltageLevelInfos().getId()).getBusView().getBus(busId); if (bus != null) { for (Terminal t : bus.getConnectedTerminals()) { for (FeederNode feederNode : graph.getFeederNodes()) {