Skip to content

Commit

Permalink
#19 Bug fix for depth counts and export after report run
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Nov 11, 2018
1 parent 37e0e29 commit 5b3efe9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import org.ephyra.acropolis.report.api.model.GraphContainer
import org.ephyra.acropolis.report.api.model.Node
import org.ephyra.acropolis.report.impl.render.DiagramRenderer
import org.springframework.stereotype.Component
import java.io.File
import java.lang.IllegalStateException

/**
Expand Down Expand Up @@ -64,6 +65,7 @@ internal class ReportRunner : IReportRunner {
val imageResource = imageSource.get(node.representedByResourceName)
renderer.addImage(position.x.toInt(), position.y.toInt(), imageResource)
}
renderer.export(File("test-report.png"))
}
}

Expand All @@ -72,7 +74,7 @@ internal class ReportRunner : IReportRunner {
depthMap.forEach { (_, v) ->
val t = depthCounts[v]
if (t == null) {
depthCounts[v] = 0
depthCounts[v] = 1
} else {
depthCounts[v] = t + 1
}
Expand Down

0 comments on commit 5b3efe9

Please sign in to comment.