Changeset 543 for trunk/src


Ignore:
Timestamp:
Sep 15, 2012, 10:31:02 PM (12 years ago)
Author:
sommeria
Message:

suppress iscolumn in find_field_cells (do not exist in Matlab 2009)
improve behaviour of mouse selection near the edge of view field

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r535 r543  
    256256            DimIndices=[DimIndices ind_dim]; %update the list of coord dimensions included in DimCell
    257257            if check_var && CoordSize(ind_dim)==2 % determine the size of the coordinate in case of coordiante variable limited to lower and upper bounds
    258                 if isvector(Data.(ListVarName{ivardim})) || iscolumn(Data.(ListVarName{ivardim}))
     258                if isvector(Data.(ListVarName{ivardim}))
    259259                    if numel(Data.(ListVarName{ivardim}))>2
    260260                        CoordSize(ind_dim)=numel(Data.(ListVarName{ivardim}));
  • trunk/src/mouse_down.m

    r541 r543  
    102102                haxes=hchild;
    103103                xy=get(hchild,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
    104                 if xy(1,1)>x_lim(1) && xy(1,1)<x_lim(2) && xy(1,2)>y_lim(1) && xy(1,2)<y_lim(2)
     104%                 if xy(1,1)>x_lim(1) && xy(1,1)<x_lim(2) && xy(1,2)>y_lim(1) && xy(1,2)<y_lim(2)
    105105                    AxeData=get(hchild,'UserData');% data attached to the axis
    106106                    AxeData.CurrentOrigin=[xy(1,1) xy(1,2)];% The current point set by the mouse becomes the current origin
     
    125125                        end
    126126                    end
    127                 else
    128                     hchild=[];%mouse out of axes
    129                 end
     127%                 else
     128%                     hchild=[];%mouse out of axes
     129%                 end
    130130                break
    131131               
Note: See TracChangeset for help on using the changeset viewer.