Skip to content

Commit 4d54cf7

Browse files
committed
don't propagate code bounds beyond <file> node
1 parent 2604596 commit 4d54cf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fortran/ofp/XMLPrinterBase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ protected void propagateBounds(Element context) {
434434
propagateBounds(node);
435435
if (context == root)
436436
continue;
437+
if (node.getNodeName().equals("file"))
438+
continue; // propagating bounds beyond <file> node makes them inconsistent
437439
CodeBounds bounds = new CodeBounds(node);
438440
if (bounds.begin == null)
439441
continue;

0 commit comments

Comments
 (0)