Ignore:
Timestamp:
Sep 2, 2013, 7:44:19 PM (11 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r681 r682  
    2626
    2727if ~exist('handles','var')
     28    set(hCurrentFig,'Pointer','arrow');
    2829    return
    2930end
     
    6364    if ~ishandle(FigData.CivHandle)
    6465        delete(hObject)
     66        set(hCurrentFig,'Pointer','arrow');
    6567        return
    6668    end
     
    9193end
    9294if size(PosChildren,2)~=4
     95    set(hCurrentFig,'Pointer','arrow');
    9396    return
    9497end
     
    100103
    101104%if the mouse is over an axis, look at the data
    102 if strcmp(get(hchild,'Type'),'axes')
     105htype=get(hchild,'Type');
     106if strcmp(htype,'axes')
    103107    CurrentAxes=hchild;
    104108    xy=get(CurrentAxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
     
    323327%%%%%%%%%%%%%%%%%
    324328%% create or modify an object
    325 if ~isempty(huvmat) && test_object
     329if strcmp(htype,'axes') && ~isempty(huvmat) && test_object
    326330    UvData=get(huvmat,'UserData');
    327331    PlotData=get(AxeData.CurrentObject,'UserData');
    328332    if ~isfield(PlotData,'IndexObj')
     333        set(hCurrentFig,'Pointer','arrow');
    329334        return
    330335    end
     
    375380%% detect calibration points if the GUI geometry_calib is opened
    376381h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI
    377 if ~CheckZoom && ~isempty(h_geometry_calib)
     382if strcmp(htype,'axes') && ~CheckZoom && ~isempty(h_geometry_calib)
    378383    pointershape='crosshair';%default for geometry_calib: ready to create new points
    379384    hh_geometry_calib=guidata(h_geometry_calib);
     
    415420                    Data(index_point,6)=1;%mrk the point on the GUI geometry_calib
    416421                    set(h_ListCoord,'Data',Data);
    417                    % set(h_ListCoord,'Value',index_point)%mrk the point on the GUI geometry_calib
    418422                    hhh=findobj('Tag','calib_marker');%look for handle of point marker (circle)
    419423                    if ~isempty(hhh)
Note: See TracChangeset for help on using the changeset viewer.