You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am removing the 'mcr' to enable the function to work, but maybe there is a nice way to get around this in the code.
The text was updated successfully, but these errors were encountered:
BecCowley
changed the title
MCR reference in imread mainWindow.m causes crash in non-mcr setups
MCR reference in imread mainWindow.m causes error in non-mcr setups
Jul 30, 2021
Yes, but removing it breaks the stand-alone app. The correct fix is to check if the toolbox is running in deployed mode (standalone version) or within matlab. It is a very quick fix , one just needs to wrap a path to the pngs around the isdeployed function.
Lines 290, 300, 310 in GUI/mainWindow all reference 'mcr' and cause the zoom, pan tools not to appear if mcr is not in use.
[img,map,alpha] = imread(fullfile(matlabroot,'mcr','toolbox','matlab','icons','tool_zoom_in.png'));
[img,map,alpha] = imread(fullfile(matlabroot,'mcr','toolbox','matlab','icons','tool_zoom_out.png'));
[img,map,alpha] = imread(fullfile(matlabroot,'mcr','toolbox','matlab','icons','tool_hand.png'));
I am removing the 'mcr' to enable the function to work, but maybe there is a nice way to get around this in the code.
The text was updated successfully, but these errors were encountered: