Skip to content

Commit 46058f2

Browse files
committed
Fixed empty post-iteractions
1 parent 5b8c611 commit 46058f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flowgorithm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function drawFlowchart($xml,selector,options){
482482
var s = '<g class="block" transform="translate(0,'+flow.Y+')"><line class="line" x1="0" y1="0" x2="0" y2="'+(options.aH*2)+'"/><circle class="symbol" cx="0" cy="'+(options.aH*2)+'" r="4"/>';
483483
var oldY = flow.Y;
484484
flow.Y = 0;
485-
var contentDraw = drawSequence($content);
485+
var contentDraw = ($content.children().length>0) ? drawSequence($content) : drawEmptyBlock();
486486
var contentWidth = calcBlockWidth(contentDraw);
487487
var half = Math.max(calcBlockX(contentDraw)+10,condW2+30);
488488
flow.Y += 15;

0 commit comments

Comments
 (0)