Skip to content
Permalink
Browse files

Layout Editor Turnout Color Change

Don't base Layout turnout colors on continuing sense state.
  • Loading branch information...
geowar1 committed May 21, 2019
1 parent cb40eb8 commit 40f0c0e99c9e8782ecb1e7c1db2dce31bc41d28e
Showing with 2 additions and 2 deletions.
  1. +2 −2 java/src/jmri/jmrit/display/layoutEditor/LayoutTurnout.java
@@ -4224,7 +4224,7 @@ protected void highlightUnconnected(Graphics2D g2, int specificType) {
protected void drawTurnoutControls(Graphics2D g2) {
if (!disabled && !(disableWhenOccupied && isOccupied())) {
Color foregroundColor = g2.getColor();
if (!isInContinuingSenseState()) {
if (getState() == Turnout.CLOSED) {
Color backgroundColor = g2.getBackground();
g2.setColor(backgroundColor);
}
@@ -4233,7 +4233,7 @@ protected void drawTurnoutControls(Graphics2D g2) {
} else {
g2.draw(layoutEditor.trackControlCircleAt(center));
}
if (!isInContinuingSenseState()) {
if (getState() == Turnout.CLOSED) {
g2.setColor(foregroundColor);
}
}

0 comments on commit 40f0c0e

Please sign in to comment.
You can’t perform that action at this time.