[PATCH] function auto select fix
Wald Commits
scm-commit at wald.intevation.org
Mon Aug 20 13:30:46 CEST 2018
# HG changeset patch
# User gernotbelger
# Date 1534764641 -7200
# Node ID 9f57d2396360b1499a604d11ecfbc10076c37049
# Parent af872dab1a0af6cb28a8ca62566690e2e17a2e65
function auto select fix
diff -r af872dab1a0a -r 9f57d2396360 artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java Mon Aug 20 12:11:54 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstCalculation.java Mon Aug 20 13:30:41 2018 +0200
@@ -70,7 +70,7 @@
final Calculation problems = new Calculation();
// Calculate the wspl for the selected river range as in fixa awspl
- bunduartifact.addStringData("wq_isq", "true");
+ // bunduartifact.addStringData("wq_isq", "true"); //ist schon gesetzt, Zeile löschen.
final WinfoArtifactWrapper winfo = new WinfoArtifactWrapper(bunduartifact);
final RiverInfoProvider riverInfoProvider = RiverInfoProvider.forRange(this.context, river, access.getRange(), true);
final WQKms wqkms = calculateWspl(bunduartifact, problems);
@@ -98,8 +98,8 @@
// Add the result to the results collection
final WaterlevelDescriptionBuilder descBuilder = new WaterlevelDescriptionBuilder(winfo, this.context);
final String qtext = descBuilder.getMetadataQ();
- final BezugswstMainCalculationResult result = new BezugswstMainCalculationResult("bundu-bzws", rows, bedHeightsFinder.getInfo(),
- wstInfo, access.getFunction(), preprocessing, startYear, endYear, ud, qtext, missingVolFrom, missingVolTo);
+ final BezugswstMainCalculationResult result = new BezugswstMainCalculationResult("bundu-bzws", rows, bedHeightsFinder.getInfo(), wstInfo,
+ access.getFunction(), preprocessing, startYear, endYear, ud, qtext, missingVolFrom, missingVolTo);
results.addResult(result, problems);
// // missing volume calculation
diff -r af872dab1a0a -r 9f57d2396360 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstCalcSelectRadioPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstCalcSelectRadioPanel.java Mon Aug 20 12:11:54 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstCalcSelectRadioPanel.java Mon Aug 20 13:30:41 2018 +0200
@@ -32,8 +32,7 @@
if (value.equals("state.bundu.wst.calc.auto")) {
final Data[] data = new Data[3];
data[0] = selection;
- data[1] = new DefaultData("function", "", "",
- new DataItem[] { new DefaultDataItem("", "", org.dive4elements.river.client.client.ui.fixation.FixFunctionSelect.funcDesc.get("log")) });
+ data[1] = new DefaultData("function", "", "", new DataItem[] { new DefaultDataItem("", "", "log") });
data[2] = new DefaultData("preprocessing", "", "", //
new DataItem[] { new DefaultDataItem("", "", "true") });
More information about the Dive4Elements-commits
mailing list