Changeset 864 for trunk/src/proj_field.m


Ignore:
Timestamp:
Feb 6, 2015, 7:55:10 PM (10 years ago)
Author:
sommeria
Message:

bug_repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r863 r864  
    961961if isfield(FieldData,'PlaneCoord')&&length(FieldData.PlaneCoord)==3&& isfield(ProjData,'ProjObjectCoord')
    962962    if length(ProjData.ProjObjectCoord)==3% if the projection plane has a z coordinate
    963         if ~isequal(ProjData.PlaneCoord(3),ProjData.ProjObjectCoord) %check the consistency with the z coordinate of the field plane (set by calibration)
     963        if isfield(ProjData,'.PlaneCoord') && ~isequal(ProjData.PlaneCoord(3),ProjData.ProjObjectCoord) %check the consistency with the z coordinate of the field plane (set by calibration)
    964964            errormsg='inconsistent z position for field and projection plane';
    965965            return
Note: See TracChangeset for help on using the changeset viewer.