1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 14:56:28 +00:00
This commit is contained in:
Arnaud Roques 2022-06-27 18:34:58 +02:00
parent e801884415
commit 649a13e04b

View File

@ -122,7 +122,12 @@ public class CompositeDiagramShape extends DiagramComponent {
if(workGrid.cellContainsDashedLineChar(previousCell)) shape.setStrokeDashed(true); if(workGrid.cellContainsDashedLineChar(previousCell)) shape.setStrokeDashed(true);
boolean finished = false; boolean finished = false;
int nb = 0;
while(!finished) { while(!finished) {
// https://github.com/plantuml/plantuml/issues/1036
nb++;
if (nb > 1000)
return result;
visitedCells.add(cell); visitedCells.add(cell);
if(workGrid.isPointCell(cell)) { if(workGrid.isPointCell(cell)) {
if(DEBUG) System.out.println("point at "+cell+" (call from line: "+DebugUtils.getLineNumber()+")"); if(DEBUG) System.out.println("point at "+cell+" (call from line: "+DebugUtils.getLineNumber()+")");