Fixed line uncommited changes -> first commit not being drawn in the log (now properly :P)

This commit is contained in:
Abdelilah El Aissaoui 2023-09-12 22:21:55 +02:00
parent dd56355497
commit 92b225503c
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -952,7 +952,7 @@ fun CommitsGraphLine(
modifier = Modifier.fillMaxSize()
) {
clipRect {
if (plotCommit.childCount > 0) {
if (plotCommit.childCount > 0 || itemPosition == 0) {
drawLine(
color = colors[itemPosition % colors.size],
start = Offset(laneWidthWithDensity * (itemPosition + 1), this.center.y),