Ignore:
Timestamp:
Dec 22, 2010, 5:12:31 PM (13 years ago)
Author:
sommeria
Message:

CoordType? not used, replaced by CoordUnit?
bug repair in check_field_structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r156 r158  
    172172                    end
    173173                    %coordinate transform if proj_coord differs from menu_coord A REVOIR
    174                     if isfield(Field,'CoordType')
    175                         mouse.CoordType=Field.CoordType;
    176                     end
    177174                    if isfield(Field,'CoordUnit')
    178175                        mouse.CoordUnit=Field.CoordUnit;
    179176                    end
    180                     if isfield(mouse,'CoordType')
    181                         if isequal(mouse.CoordType,'px')
    182                             mouse.CoordUnit='px';
    183                         end
    184                     else
    185                         mouse.CoordUnit='';%default
    186                     end
     177%                     if isfield(Field,'CoordUnit')
     178%                         mouse.CoordUnit=Field.CoordUnit;
     179%                     end
     180%                     if isfield(mouse,'CoordType')
     181%                         if isequal(mouse.CoordType,'px')
     182%                             mouse.CoordUnit='px';
     183%                         end
     184%                     else
     185%                         mouse.CoordUnit='';%default
     186%                     end
    187187                    if test_piv
    188188                       par=civ('read_param_civ1',hhciv);
Note: See TracChangeset for help on using the changeset viewer.