소스 검색

fixed issue #355: wrapped guard expression in parenthesis expression
before combining with trigger expression.

Axel Terfloth 9 년 전
부모
커밋
655be4bbc8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/org.yakindu.sct.model.sexec/src/org/yakindu/sct/model/sexec/transformation/BehaviorMapping.xtend

+ 1 - 1
plugins/org.yakindu.sct.model.sexec/src/org/yakindu/sct/model/sexec/transformation/BehaviorMapping.xtend

@@ -730,7 +730,7 @@ class BehaviorMapping {
 		
 		val guard = t.buildGuard
 		
-		if ( triggerCheck != null && guard != null )  stext.and(stext.parenthesis(triggerCheck), guard)
+		if ( triggerCheck != null && guard != null )  stext.and(stext.parenthesis(triggerCheck), stext.parenthesis(guard))
 		else if ( triggerCheck != null )  triggerCheck
 		else guard
 	}