Changeset 905 for trunk/src/mouse_up.m


Ignore:
Timestamp:
May 30, 2015, 8:44:20 PM (9 years ago)
Author:
sommeria
Message:

projection with tps corrected + minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r871 r905  
    141141        if  ~isempty(ObjectData)
    142142            % plot the field projected on the object
    143             ProjData= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
    144             if ~isempty(ProjData)
     143            [ProjData,errormsg]= proj_field(UvData.Field,ObjectData);%project the current interface field on ObjectData
     144            if isempty(errormsg) && ~isempty(ProjData)
    145145                if strcmp(FigTag,'uvmat')% uvmat plot selected, projection plot seen in view_field
    146146                    hview_field=findobj(allchild(0),'tag','view_field');
     
    170170                end
    171171            end
     172            if ~isempty(errormsg)
     173                msgbox_uvmat('ERROR',errormsg)
     174                return
     175            end
    172176            set(hhuvmat.CheckViewField,'Value',1);%
    173177            set(hhuvmat.CheckEditObject,'Value',1);%   
Note: See TracChangeset for help on using the changeset viewer.