From 2d2bb75ee10a9f0ae34974ae4772286a6f16f30f Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Thu, 10 Mar 2011 13:56:50 +0000 Subject: [PATCH] BPMN Designer: fix for none current selection in paintarea --- workflow/engine/templates/bpmn/designer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/workflow/engine/templates/bpmn/designer.js b/workflow/engine/templates/bpmn/designer.js index ebd216ec0..d199a8672 100755 --- a/workflow/engine/templates/bpmn/designer.js +++ b/workflow/engine/templates/bpmn/designer.js @@ -911,6 +911,7 @@ SelectionListener1 = function(_43b1){ SelectionListener1.prototype.type = "SelectionListener1"; SelectionListener1.prototype.onSelectionChanged = function(_43b2) { + if( this.workflow.currentSelection ) if (this.lastSelectedItem !== this.workflow.currentSelection.id ) { if( this.workflow.currentSelection.type == 'bpmnTask' || this.workflow.currentSelection.type == 'bpmnSubProcess' ) { this.lastSelectedItem = this.workflow.currentSelection.id;