Skip to content

Commit e5d54bc

Browse files
authored
Return the element annotations for Access level icon (#7993)
Fixes #7578
1 parent acafdf2 commit e5d54bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMCompiler/Compiler/Script/Interactive.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ algorithm
11171117
algorithm
11181118
{Absyn.CREF(componentRef = cr)} := args;
11191119
Values.ENUM_LITERAL(index=access) := checkAccessAnnotationAndEncryption(AbsynUtil.crefToPath(cr), p);
1120-
if (access >= 4) then // i.e., Access.diagram
1120+
if (access >= 2) then // i.e., Access.icon
11211121
if not Flags.isSet(Flags.NF_API_NOISE) then
11221122
ErrorExt.setCheckpoint("getElementAnnotations");
11231123
end if;

0 commit comments

Comments
 (0)