Changeset 62 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Mar 24, 2010, 12:36:53 PM (11 years ago)
Author:
sommeria
Message:

minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r61 r62  
    5353hcurrentobject=gco;% current object handle (selected by the mouse)
    5454hcurrentfig=gcbo;% current figure handle
     55fig_tag=get(hcurrentfig,'Tag');
    5556tag_obj=get(gco,'Tag');
    5657xy=[];%default
     
    211212            end
    212213            set(hhuvmat.list_object_1,'String',list_str)
    213             set(hhuvmat.list_object_1,'Value',IndexObj)
    214214            set(hhuvmat.list_object_2,'String',list_str)
    215             set(hhuvmat.list_object_2,'Value',IndexObj)
     215            if strcmp(fig_tag,'view_field')%we are in view_field plot
     216                  set(hhuvmat.list_object_1,'Value',IndexObj)
     217            else%we are in uvmat plot
     218                set(hhuvmat.list_object_2,'Value',IndexObj)
     219            end
    216220            PlotData=get(AxeData.CurrentObject,'UserData');
    217221            PlotData.IndexObj=IndexObj;
Note: See TracChangeset for help on using the changeset viewer.