Ignore:
Timestamp:
03/04/14 12:11:14 (11 years ago)
Author:
pharms
Message:
  • corrected time stamp handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/sequences/CMDcorrectTabKeyNavigationOrder.java

    r1316 r1432  
    119119        while (index < sequence.size()) { 
    120120            if (mustCorrectTabKeyNavigationOrder(sequence, index)) { 
    121                 result.add(sequence.get(index + 1)); 
    122                 result.add(sequence.get(index)); 
     121                Event event1 = sequence.get(index); 
     122                Event event2 = sequence.get(index + 1); 
     123                 
     124                // switch timestamps 
     125                long timestamp1 = event1.getTimestamp(); 
     126                event1.setTimestamp(event2.getTimestamp()); 
     127                event2.setTimestamp(timestamp1); 
     128                 
     129                // change order of events 
     130                result.add(event2); 
     131                result.add(event1); 
     132                 
    123133                index += 2; 
    124134            } 
Note: See TracChangeset for help on using the changeset viewer.