Changeset 741


Ignore:
Timestamp:
10/15/15 15:15:10 (5 years ago)
Author:
rlacroix
Message:

Correctly support expression with the "this" keyword for fields inside a file in read mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r737 r741  
    619619     if (enableOutput && !storeFilter && !fileWriterFilter) 
    620620     { 
    621        if (!read_access.isEmpty() && read_access.getValue()) 
     621       if (!read_access.isEmpty() && read_access) 
    622622       { 
    623623         storeFilter = boost::shared_ptr<CStoreFilter>(new CStoreFilter(gc, CContext::getCurrent(), grid)); 
     
    678678     if (!selfReferenceFilter) 
    679679     { 
    680        if (!field_ref.isEmpty()) 
     680       if (file && !file->mode.isEmpty() && file->mode == CFile::mode_attr::read) 
     681       { 
     682         if (!serverSourceFilter) 
     683           serverSourceFilter = boost::shared_ptr<CSourceFilter>(new CSourceFilter(grid)); 
     684 
     685         selfReferenceFilter = serverSourceFilter; 
     686       } 
     687       else if (!field_ref.isEmpty()) 
    681688         selfReferenceFilter = getFieldReference(gc); 
    682689       else 
Note: See TracChangeset for help on using the changeset viewer.