Permalink
Browse files

Fix bug where top-level input ports were sometimes not correctly mark…

…ed as primary
  • Loading branch information...
ndw committed Oct 25, 2013
1 parent 54faa60 commit 1a03cb9243ad8c072edfbcddcad217e400fa3db7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/xmlcalabash/model/Parser.java
@@ -459,7 +459,7 @@ private PipelineLibrary readLibrary(Step parent, XdmNode node) {
int inputCount = 0;
Input maybePrimaryInput = null;
for (Input input : step.inputs()) {
if (!input.getParameterInput()) {
if (!input.getParameterInput() && !input.getPort().startsWith("|")) {
inputCount++;
maybePrimaryInput = input;
}
@@ -472,7 +472,7 @@ private PipelineLibrary readLibrary(Step parent, XdmNode node) {
inputCount = 0;
maybePrimaryInput = null;
for (Input input : step.inputs()) {
if (input.getParameterInput()) {
if (input.getParameterInput() && !input.getPort().startsWith("|")) {
inputCount++;
maybePrimaryInput = input;
}

0 comments on commit 1a03cb9

Please sign in to comment.