Changeset 701 for trunk/src/uvmat.m


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/uvmat.m

    r699 r701  
    19531953        Field_a=transform(Field_a,UvData.XmlData{index});%the first field has been stored without transform
    19541954        end
     1955        if nargin(transform)>=2
    19551956        Field_b=transform(Field_b,UvData.XmlData{index});
     1957        else
     1958          Field_b=transform(Field_b);
     1959        end
    19561960    end
    19571961end
     
    42424246if get(handles.CheckEditObject,'Value')
    42434247    %suppress the other options
     4248    set(handles.MenuObject,'checked','off')
    42444249    set(handles.CheckZoom,'Value',0)
    42454250    CheckZoom_Callback(hObject, eventdata, handles)
     
    43904395            if ishandle(hdisplay(iview)) && ~isequal(hdisplay(iview),0)
    43914396                ObjectData=get(hdisplay(iview),'UserData');
    4392                 if isfield(ObjectData,'SubObject') && ishandle(ObjectData.SubObject)
    4393                     delete(ObjectData.SubObject);% delete the graphic 'sub-objects (e.g. projection bounds)
     4397                if isfield(ObjectData,'SubObject') && ~isempty(ObjectData.SubObject)
     4398                    delete(ObjectData.SubObject(ishandle(ObjectData.SubObject)));% delete the graphic 'sub-objects (e.g. projection bounds)
    43944399                end
    4395                 check_suppress= isfield(ObjectData,'DeformPoint') && ishandle(ObjectData.DeformPoint);
    4396                 delete(ObjectData.DeformPoint(check_suppress));% delete the graphic deformation points
    4397                 delete(hdisplay(iview))% delete the main graphic representation of the object
     4400                if isfield(ObjectData,'DeformPoint')&& ~isempty(ObjectData.DeformPoint)
     4401                    delete(ObjectData.DeformPoint(ishandle(ObjectData.DeformPoint)));% delete the graphic deformation points
     4402                    delete(hdisplay(iview))% delete the main graphic representation of the object
     4403                end
    43984404            end
    43994405            ishandle(hdisplay(iview))
     
    47134719set(handles.CheckZoomFig,'Value',0) %desactivate zoom sub fig
    47144720set(handles.CheckZoom,'Value',0)    %desactivate the zoom action
     4721set(handles.MenuObject,'checked','on')% indicate object creation for mouse pointer display
    47154722if ishandle(handles.UVMAT_title)
    47164723    delete(handles.UVMAT_title)     %delete the initial display of uvmat if no field has been entered yet
Note: See TracChangeset for help on using the changeset viewer.