|
From: <de...@us...> - 2015-09-09 19:43:10
|
Revision: 9158
http://sourceforge.net/p/fudaa/svn/9158
Author: deniger
Date: 2015-09-09 19:43:08 +0000 (Wed, 09 Sep 2015)
Log Message:
-----------
CRUE-665
Modified Paths:
--------------
trunk/soft/fudaa-crue/ui-modelling/src/main/java/org/fudaa/fudaa/crue/modelling/emh/ModellingEMHBrancheTopComponent.java
Modified: trunk/soft/fudaa-crue/ui-modelling/src/main/java/org/fudaa/fudaa/crue/modelling/emh/ModellingEMHBrancheTopComponent.java
===================================================================
--- trunk/soft/fudaa-crue/ui-modelling/src/main/java/org/fudaa/fudaa/crue/modelling/emh/ModellingEMHBrancheTopComponent.java 2015-09-09 19:38:02 UTC (rev 9157)
+++ trunk/soft/fudaa-crue/ui-modelling/src/main/java/org/fudaa/fudaa/crue/modelling/emh/ModellingEMHBrancheTopComponent.java 2015-09-09 19:43:08 UTC (rev 9158)
@@ -224,6 +224,7 @@
renameSection = optionRename.equals(DialogHelper.showQuestion(
getDisplayName(), dialogContent, new String[]{optionRename, optionNot}));
}
+ //CRUE-665: si les noeuds amont/aval changent, le sens de la branche doit être également modifié.
boolean isAmontAvalChanged = !StringUtils.equals(modifications.getNoeudAmont(), emh.getNoeudAmontNom()) || !StringUtils.equals(modifications.
getNoeudAval(), emh.
getNoeudAvalNom());
@@ -231,6 +232,7 @@
if (!log.containsErrorOrSevereError()) {
modellingScenarioModificationService.setScenarioModified(new ScenarioModificationEvent(EnumModification.EMH));
if (isAmontAvalChanged) {
+ //sens modifié: réenregistrer la branche dans le bon sens
modellingScenarioModificationService.setGeoLocModified();
}
setModified(false);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|