fix orientation parsing

This commit is contained in:
Branislav Stojkovic
2019-03-10 22:53:01 +01:00
parent 1bc11e09ab
commit 440b953531
3 changed files with 2 additions and 2 deletions
@@ -346,7 +346,7 @@ public class OpenJack1_4 extends AbstractMultiPartComponent<String> {
@EditableProperty
public Integer getAngle() {
if (angle == null) {
if (orientation != null)
if (orientation != null && orientation != Orientation.DEFAULT)
angle = Integer.parseInt(orientation.name().replace("_", ""));
else
angle = 0;
@@ -389,7 +389,7 @@ public class PilotLampHolder extends AbstractMultiPartComponent<String> {
@EditableProperty
public Integer getAngle() {
if (angle == null) {
if (orientation != null)
if (orientation != null && orientation != Orientation.DEFAULT)
angle = Integer.parseInt(orientation.name().replace("_", ""));
else
angle = 0;