diff --git a/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java b/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java index 80c632b6195..319b4c1dbf3 100644 --- a/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java +++ b/cgmes/cgmes-conversion/src/main/java/com/powsybl/cgmes/conversion/export/CgmesExportUtil.java @@ -386,7 +386,7 @@ private static > String getTapChangerId(C twt, String c } static boolean regulatingControlIsDefined(RatioTapChanger rtc) { - return !Double.isNaN(rtc.getTargetV()) + return !Double.isNaN(rtc.getRegulationValue()) && !Double.isNaN(rtc.getTargetDeadband()) && rtc.getRegulationTerminal() != null; }