Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit dd59e54

Browse files
committed
Only filter public variables with HideResult, ticket:4089
This is needed as HideResult defaults to protected. Protected variables are filtered anyway.
1 parent 77bf4cb commit dd59e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/simulation/simulation_input_xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void read_input_xml(MODEL_DATA* modelData,
613613
infoStreamPrint(LOG_DEBUG, 0, "filtering protected variable %s", info->name); \
614614
out[j].filterOutput = 1; \
615615
} \
616-
else if (!omc_flag[FLAG_IGNORE_HIDERESULT] && 0 == strcmp(findHashStringString(v, "hideResult"), "true")) \
616+
else if (!omc_flag[FLAG_IGNORE_HIDERESULT] && 0 == strcmp(findHashStringString(v, "hideResult"), "true") && 0 == strcmp(findHashStringString(v, "isProtected"), "false")) \
617617
{ \
618618
infoStreamPrint(LOG_DEBUG, 0, "filtering variable %s due to HideResult annotation", info->name); \
619619
out[j].filterOutput = 1; \

0 commit comments

Comments
 (0)