Changeset 213 for aedes_gui_defaults.m


Ignore:
Timestamp:
Mar 30, 2015, 5:16:55 PM (4 years ago)
Author:
tjniskan
Message:
  • Fixed Aedes for Handle Graphics version 2 (HG2).

M aedes.m
M aedes_createmosaic.m
M aedes_export_gui.m
M aedes_gui_defaults.m
M aedes_headerbrowser.m
M aedes_helpabout.m
M aedes_inputdlg.m
M aedes_juigetfiles.m
M aedes_readfidprefs.m
M aedes_resviewer.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_gui_defaults.m

    r212 r213  
    119119% - Number for tmp-figure -
    120120Dat.tmpfig = 99;
    121 while ismember(Dat.tmpfig,double(get(0,'children'))),
    122   Dat.tmpfig = Dat.tmpfig+1;
     121fig_handles = get(0,'children');
     122if ~isempty(fig_handles)
     123        while ismember(Dat.tmpfig,double(fig_handles)),
     124                Dat.tmpfig = Dat.tmpfig+1;
     125        end
    123126end
     127
     128% Detect if HG2 graphics are used
     129tmp = figure('units','pixels','position',[1 1 1 1],'visible','off');
     130if isa(tmp,'matlab.ui.Figure')
     131        Dat.HG2graphics = true;
     132else
     133        Dat.HG2graphics = false;
     134end
     135delete(tmp)
    124136
    125137return
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008