Skip to content
Permalink
Browse files

fix new old order

  • Loading branch information...
bobjacobsen committed Sep 24, 2018
1 parent 5798c40 commit af8005abdd33f224f28a8b57ead3a69f786a726c
Showing with 3 additions and 3 deletions.
  1. +3 −3 java/src/jmri/jmrit/simpleclock/SimpleTimebase.java
@@ -171,7 +171,7 @@ public void setRun(boolean run) {
}
}
}
firePropertyChange("run", Boolean.valueOf(run), Boolean.valueOf(!run));
firePropertyChange("run", Boolean.valueOf(!run), Boolean.valueOf(run)); // old, then new
handleAlarm();
}

@@ -208,7 +208,7 @@ public void setRate(double factor) {
setTime(now);
// notify listeners if internal master
if (internalMaster) {
firePropertyChange("rate", Double.valueOf(factor), Double.valueOf(oldFactor));
firePropertyChange("rate", Double.valueOf(oldFactor), Double.valueOf(factor)); // old, then new
}
handleAlarm();
}
@@ -239,7 +239,7 @@ public void userSetRate(double factor) {
// update memory
updateMemory(factor);
// notify listeners
firePropertyChange("rate", Double.valueOf(factor), Double.valueOf(oldFactor));
firePropertyChange("rate", Double.valueOf(oldFactor), Double.valueOf(factor)); // old, then new
handleAlarm();
}

0 comments on commit af8005a

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