Changeset 1194 for trunk/src/fill_GUI.m


Ignore:
Timestamp:
Feb 23, 2026, 3:58:54 PM (8 days ago)
Author:
sommeria
Message:

several bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fill_GUI.m

    r1127 r1194  
    3333errormsg='';
    3434if ~isstruct(Param)
    35     errormsg='first input parmaeter of fill_GUI must be a structure';
     35    errormsg='first input parameter of fill_GUI must be a structure';
    3636    return
    3737end
     
    9191        end
    9292        for ibox=1:numel(hh)
    93         % finalise the update of GUI uicontrol filled by the input element
     93            % finalise the update of GUI uicontrol filled by the input element
    9494            if ~isempty(hh(ibox))&& ~check_done
    9595                set(hh(ibox),'Visible','on')% make the filled GUI element visible
     
    104104                            if isnumeric(input_data)
    105105                                if numel(input_data)>0
    106                                     input_string=num2str(input_data(ibox),4);
     106                                    if floor(input_data(ibox))==input_data(ibox)
     107                                        input_string=num2str(input_data(ibox)); % case of integers, write in full
     108                                    else
     109                                        input_string=num2str(input_data(ibox),4);%case of floating point:nbre_digit=4;
     110                                    end
    107111                                end
    108112                            elseif ischar(input_data)
Note: See TracChangeset for help on using the changeset viewer.