Changeset 142 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/structures/TimeSlice.java


Ignore:
Timestamp:
01/04/2018 09:29:09 AM (8 years ago)
Author:
bmcguffin
Message:

Band-aid fix for defect #68. CadData? object in TimeSlice? is now initialized in constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/structures/TimeSlice.java

    r138 r142  
    2323{ 
    2424 
     25    /** 
     26     * Cad data object for this timeslice. Can be overwritten by call from 
     27     * parent incident. 
     28     */ 
    2529    CadData cadData = null; 
    2630 
     
    4953        events = new ArrayList<I_ScriptEvent>(); 
    5054        thisIncident = inc; 
     55        cadData = new CadData(); 
    5156    } 
    5257 
     
    221226        output += XMLWriter.openTag(ELEMENT.INCIDENT.tag + " LogNum=\"" + thisIncident.number + "\""); 
    222227        output += thisIncident.name + XMLWriter.closeTag(ELEMENT.INCIDENT.tag); 
    223         output += XMLWriter.emptyTag(ELEMENT.COLOR.tag  
     228        output += XMLWriter.emptyTag(ELEMENT.COLOR.tag 
    224229                + " r=\"" + thisIncident.color.getRed() + "\"" 
    225230                + " g=\"" + thisIncident.color.getGreen() + "\"" 
Note: See TracChangeset for help on using the changeset viewer.