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

Commit c58bee3

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Emit protected variables with HideResult=false, ticket:4089
1 parent 6d02154 commit c58bee3

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
@@ -608,7 +608,7 @@ void read_input_xml(MODEL_DATA* modelData,
608608
{ \
609609
out[j].filterOutput = 1; \
610610
} \
611-
else if (!omc_flag[FLAG_EMIT_PROTECTED] && 0 == strcmp(findHashStringString(v, "isProtected"), "true")) \
611+
else if (!omc_flag[FLAG_EMIT_PROTECTED] && 0 == strcmp(findHashStringString(v, "isProtected"), "true") && 0 == strcmp(findHashStringString(v, "hideResult"), "true")) \
612612
{ \
613613
infoStreamPrint(LOG_DEBUG, 0, "filtering protected variable %s", info->name); \
614614
out[j].filterOutput = 1; \

0 commit comments

Comments
 (0)