Skip to content

Commit

Permalink
fix for matRad_cfg check in structurevisibility widget
Browse files Browse the repository at this point in the history
  • Loading branch information
wahln committed Jan 31, 2024
1 parent 0d04f8a commit cb4cc1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gui/widgets/matRad_StructureVisibilityWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ function legendTable_Callback(this, hObject, event)
end
end

matRad_cfg = MatRad_Config.instance();

for s = 1:size(cst,1)
handles.VOIPlotFlag(s) = cst{s,5}.Visible;

Expand Down Expand Up @@ -209,6 +207,7 @@ function legendTable_Callback(this, hObject, event)
item = [checkbox cstElement{1,2}];
style = uistyle('BackgroundColor',clr,'FontColor',txtClr);
else
matRad_cfg = MatRad_Config.instance();
switch matRad_cfg.env
case 'OCTAVE'
item = [checkbox cstElement{1,2}];
Expand Down

0 comments on commit cb4cc1f

Please sign in to comment.