From 0c1353512bfb101483812f310297f1fdc0088354 Mon Sep 17 00:00:00 2001 From: rlm Date: Thu, 2 Jul 2020 16:20:50 +0200 Subject: :Jira: ADSVHTNG-1165 - bug in done event for parallel state with state and final children Change-Id: Id17d6149359935e3c21d62d76e8714004b32e4f7 --- src/uscxml/transform/ChartToC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uscxml/transform/ChartToC.cpp b/src/uscxml/transform/ChartToC.cpp index 98e20de..a254f09 100755 --- a/src/uscxml/transform/ChartToC.cpp +++ b/src/uscxml/transform/ChartToC.cpp @@ -2785,7 +2785,7 @@ void ChartToC::writeFSM(std::ostream& stream) { stream << " } else {" << std::endl; stream << " BIT_SET_AT(k, tmp_states);" << std::endl; stream << " }" << std::endl; - stream << " } else if unlikely(BIT_HAS(j, ctx->machine->states[k].ancestors)) {" << std::endl; + stream << " } else if unlikely(BIT_HAS(j, ctx->machine->states[k].ancestors) && BIT_HAS(k, entry_set)) {" << std::endl; stream << " BIT_SET_AT(k, tmp_states);" << std::endl; stream << " }" << std::endl; stream << " }" << std::endl; -- cgit v0.12