Changeset 307 for trunk/src/set_object.m


Ignore:
Timestamp:
Nov 28, 2011, 8:43:30 PM (9 years ago)
Author:
sommeria
Message:

bug fixed in the browser of civ + bug fix for the plot of objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r292 r307  
    672672hhuvmat=guidata(huvmat);%handles in the uvmat GUI
    673673ObjectName=get(handles.TITLE,'String');%name of the current object
    674 ListObject=get(hhuvmat.list_object_1,'String');%position in the objet list
    675 IndexObj_1=get(hhuvmat.list_object_1,'Value');
    676 if isequal(get(hhuvmat.list_object_2,'Visible'),'on')
    677     IndexObj_2=get(hhuvmat.list_object_2,'Value');
    678     List2=get(hhuvmat.list_object_2,'String');
     674ListObject=get(hhuvmat.ListObject,'String');%position in the objet list
     675IndexObj=get(hhuvmat.ListObject,'Value');
     676IndexObj_1=IndexObj(1);
     677% if isequal(get(hhuvmat.list_object_2,'Visible'),'on')
     678%     IndexObj_2=get(hhuvmat.list_object_2,'Value');
     679%     List2=get(hhuvmat.list_object_2,'String');
     680if numel(IndexObj)==2
     681    IndexObj_2=IndexObj(2);
    679682else
    680683    IndexObj_2=[];
     
    729732end
    730733ListObject{IndexObj,1}=ObjectName;
    731 set(hhuvmat.list_object_1,'String',ListObject)
    732 set(hhuvmat.list_object_2,'String',ListObject)
     734set(hhuvmat.ListObject,'String',ListObject)
     735% set(hhuvmat.list_object_2,'String',ListObject)
    733736
    734737%% update the object plot and projection field
    735738if testnew
    736     set(hhuvmat.list_object_2,'Value',IndexObj)
     739   set(hhuvmat.ListObject,'Value',IndexObj)
     740%     set(hhuvmat.list_object_2,'Value',IndexObj)
    737741    ObjectData.DisplayHandle_uvmat=hhuvmat.axes3;
    738742    ObjectData.DisplayHandle_view_field=[];
    739743else
    740     if isfield(UvData.Object{IndexObj},'DisplayHandle_uvmat')% save the previous object graph handles
     744    IndexObj
     745    UvData.Object{IndexObj}
     746    if IndexObj<=length(UvData.Object) && isfield(UvData.Object{IndexObj},'DisplayHandle_uvmat')% save the previous object graph handles
    741747        ObjectData.DisplayHandle_uvmat=UvData.Object{IndexObj}.DisplayHandle_uvmat;
    742748    else
Note: See TracChangeset for help on using the changeset viewer.