Ignore:
Timestamp:
Dec 13, 2013, 10:51:21 PM (10 years ago)
Author:
sommeria
Message:

several bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r699 r701  
    5050test_zoom_draw=0;
    5151test_object=0; %test for object editing or creation
     52test_create_object=0;
    5253test_edit_object=0;% edit test for mouse shape: an arrow
    5354test_ruler=0;%test for active ruler
     
    5657if ~isempty(huvmat)
    5758    hhuvmat=guidata(huvmat);%handles of the elements in uvma
     59    test_create_object=strcmp(get(hhuvmat.MenuObject,'checked'),'on');
    5860    test_edit_object=get(hhuvmat.CheckEditObject,'Value');
    5961    test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');
     
    109111    test_zoom_draw=test_draw && isequal(AxeData.Drawing,'zoom')&& isfield(AxeData,'CurrentOrigin') && isequal(get(gcf,'SelectionType'),'normal');
    110112    test_object=test_draw && isfield(AxeData,'CurrentObject') && ~isempty(AxeData.CurrentObject) && ishandle(AxeData.CurrentObject);
    111     if ~test_edit_object  && ~test_ruler
     113    if CheckZoom
     114           pointershape='zoom';
     115    elseif CheckZoomFig
     116            pointershape='zoomfig';
     117    elseif ~test_edit_object  && ~test_ruler
    112118        if CheckZoom
    113119           pointershape='zoom';
    114         elseif CheckZoomFig
    115             pointershape='zoomfig';
    116         elseif test_draw
    117             pointershape='crosshair';%set pointer with cross shape (default when mouse is over an axis)
     120        elseif test_draw|| test_create_object
     121            pointershape='crosshair';%set pointer with cross shape
    118122        else
    119         pointershape='fullcross';%set pointer with cross shape (default when mouse is over an axis)
     123        pointershape='fullcross';%set pointer with large cross (default when mouse is over an axis)
    120124        end
    121125    end
Note: See TracChangeset for help on using the changeset viewer.