mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-26 06:46:45 +00:00
Workaround for issue https://github.com/plantuml/plantuml/issues/1036
This commit is contained in:
parent
e801884415
commit
649a13e04b
@ -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()+")");
|
||||||
|
Loading…
Reference in New Issue
Block a user