Ignore:
Timestamp:
Mar 18, 2026, 12:44:56 PM (3 hours ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r1173 r1199  
    126126                            if NbDim(icell)==2 % select 2D field
    127127                                if  isfield(Field,'CoordMesh') && ~isempty(Field.CoordMesh)&&...
    128                                         ~isempty(CellInfo{icell}.VarIndex_coord_x) && ~isempty(CellInfo{icell}.VarIndex_coord_y)%case of unstructured data
    129                                     X=Field.(Field.ListVarName{CellInfo{icell}.VarIndex_coord_x});
    130                                     Y=Field.(Field.ListVarName{CellInfo{icell}.VarIndex_coord_y});
     128                                        ~isempty(CellInfo{icell}.XName) && ~isempty(CellInfo{icell}.YName)%case of unstructured data
     129                                    X=Field.(CellInfo{icell}.XName);
     130                                    Y=Field.(CellInfo{icell}.YName);
    131131                                    flag_vec=(X<(xy(1,1)+Field.CoordMesh/4) & X>(xy(1,1)-Field.CoordMesh/4)) & ...%flagx=1 for the vectors with x position selected by the mouse
    132132                                        (Y<(xy(1,2)+Field.CoordMesh/4) & Y>(xy(1,2)-Field.CoordMesh/4));%f
Note: See TracChangeset for help on using the changeset viewer.