Changeset 534 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Aug 31, 2012, 4:20:32 PM (12 years ago)
Author:
sommeria
Message:

bugs repaired. color images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r521 r534  
    181181
    182182%% delete the current zoom rectangle
    183 if isfield(AxeData,'CurrentRectZoom') && ishandle(AxeData.CurrentRectZoom)
     183if isfield(AxeData,'CurrentRectZoom') && ~isempty(AxeData.CurrentRectZoom) && ishandle(AxeData.CurrentRectZoom)
    184184    delete(AxeData.CurrentRectZoom)
    185185    AxeData.CurrentRectZoom=[];
     
    345345            ObjectName=ObjectNameNew;
    346346            set(sethandles.Name,'String',ObjectName)% display the default name in set_object
     347            if isempty(ListObject)
     348                ListObject={ObjectName};
     349            else
    347350            ListObject{end}=ObjectName;
     351            end
    348352            set(hhuvmat.ListObject,'String',ListObject);%complement the object list
    349353            set(hhuvmat.ListObject_1,'String',ListObject);%complement the object list
Note: See TracChangeset for help on using the changeset viewer.