Skip to content

Commit

Permalink
mp/maneuvers/RowsPattern: Fix not honoring ignoreAlternationPercentag…
Browse files Browse the repository at this point in the history
…e on properties showing.
  • Loading branch information
paulosousadias committed Nov 6, 2019
1 parent 3e8d5b5 commit 6433a67
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/pt/lsts/neptus/mp/maneuvers/RowsPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,14 @@ protected Vector<DefaultProperty> additionalProperties() {
DefaultProperty width = PropertiesEditor.getPropertyInstance("Width", Double.class, this.width, true);
width.setShortDescription(I18n.text("Width of the volume to cover, in meters") + "<br/>(m)");
props.add(width);

DefaultProperty halt = PropertiesEditor.getPropertyInstance("Horizontal Alternation", Short.class, (short)(this.alternationPercentage*100), true);
halt.setShortDescription(I18n
.text("Horizontal alternation in percentage. 100 will make all rows separated by the Horizontal Step")
+ "<br/>(%)");
props.add(halt);

if (!ignoreAlternationPercentage) {
DefaultProperty halt = PropertiesEditor.getPropertyInstance("Horizontal Alternation", Short.class, (short)(this.alternationPercentage*100), true);
halt.setShortDescription(I18n
.text("Horizontal alternation in percentage. 100 will make all rows separated by the Horizontal Step")
+ "<br/>(%)");
props.add(halt);
}

DefaultProperty hstep = PropertiesEditor.getPropertyInstance("Horizontal Step", Double.class, this.hstep, true);
hstep.setShortDescription(I18n.text("Horizontal distance between rows, in meters") + "<br/>(m)");
Expand Down

0 comments on commit 6433a67

Please sign in to comment.