fix(draw/BpmnRenderer): only display message flow marker if messageRef

Closes #205
This commit is contained in:
Nico Rehwaldt 2015-02-25 18:30:16 +01:00
parent 9898ad888c
commit 4fa01649b5
1 changed files with 3 additions and 2 deletions

View File

@ -1094,7 +1094,8 @@ function BpmnRenderer(events, styles, pathMap) {
},
'bpmn:MessageFlow': function(p, element) {
var di = getDi(element);
var semantic = getSemantic(element),
di = getDi(element);
var pathData = createPathFromConnection(element);
var path = drawPath(p, pathData, {
@ -1105,7 +1106,7 @@ function BpmnRenderer(events, styles, pathMap) {
strokeWidth: 1
});
if (!!di.messageVisibleKind) {
if (semantic.messageRef) {
var midPoint = path.getPointAtLength(path.getTotalLength() / 2);
var markerPathData = pathMap.getScaledPath('MESSAGE_FLOW_MARKER', {