Ignore:
Timestamp:
02/20/13 11:16:57 (12 years ago)
Author:
pharms
Message:
  • correction in the task splitting
File:
1 edited

Legend:

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

    r1091 r1096  
    9191                } 
    9292                 
    93                 if (previous == null) { 
    94                     previous = currentEvent; 
    95                 } 
    96                 else if (Math.abs(previous.getTimestamp() - currentEvent.getTimestamp()) > diff) { 
     93                if ((previous != null) && 
     94                    (Math.abs(previous.getTimestamp() - currentEvent.getTimestamp()) > diff)) 
     95                { 
    9796                    newSequences.add(resultingSequence); 
    9897                    resultingSequence = new LinkedList<Event>(); 
     
    10099                 
    101100                resultingSequence.add(currentEvent); 
     101                previous = currentEvent; 
    102102            } 
    103103             
Note: See TracChangeset for help on using the changeset viewer.