diff --git a/tsgqc.m b/tsgqc.m index 6df126c7c228548df945ef7f9a36edc1adbd925b..68dee1b764f5d2d13db55de2a6e3c2ba8126bae0 100644 --- a/tsgqc.m +++ b/tsgqc.m @@ -1045,6 +1045,13 @@ uimenu(hMapPrintMenu,'Label','Save as',... 'Tag','TAG_UIMENU_MAP_PRINT_SAVEAS',... 'Callback', {@mapSaveAsCallback}); +% see issue #12 with bug on Matlab < R2014b +% ----------------------------------------- +if verLessThan('matlab','8.4') + set(hMapPrintPrintMenu, 'enable', 'off'); + set(hMapPrintPreviewMenu, 'enable', 'off'); +end + % map Toolbar display menu % -------------------- hMapToolbarMenu = uimenu(hMapFig,'Label','ToolBar', ... @@ -4060,13 +4067,6 @@ end % --------------------- tsg = getappdata( hMainFig, 'tsg_data'); - % see issue #12 with bug on Matlab < R2014b - % ----------------------------------------- - if verLessThan('matlab','8.4') - set(hMapPrintPrintMenu, 'enable', 'off'); - set(hMapPrintPreviewMenu, 'enable', 'off'); - end - % check only the selected menu % ----------------------------- hdls = findobj( '-regexp', 'tag', 'TAG_UIMENU_MAP_CLIMATOLOGY_WITH_');