Ignore:
Timestamp:
Sep 12, 2013 10:11:24 AM (9 years ago)
Author:
srkline
Message:

fixed an issue in Invariant where the file loader would fail if it tried to load in a name that was too long and needed to be truncated. Issue was resolved and updated to behave like the main file loader. Another good reason to consolidate the file loaders rather than have them scattered around...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/Invariant/Invariant_v40.ipf

    r710 r921  
    627627        //Print S_fileName 
    628628        //Print tempName 
    629          
    630         String cleanLastFileName = CleanupName(root:Packages:NIST:gLastFileName,0) 
     629 
     630// if the data loader forced a shorter name, get it now 
     631        String newStr = root:Packages:NIST:gShortNameStr 
     632        String cleanLastFileName 
     633        if(strlen(newStr) > 0) 
     634                 cleanLastFileName = CleanupName(newStr,0) 
     635        else 
     636                 cleanLastFileName = CleanupName(root:Packages:NIST:gLastFileName,0) 
     637        endif 
     638         
    631639        String dataStr = "root:"+cleanLastFileName+":" 
     640 
    632641         
    633642        // keep global copies of the names rather than reading from the popup 
Note: See TracChangeset for help on using the changeset viewer.