From 8424ca3a156829067d0b2eb490c264fac3392e1c Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Mon, 29 Dec 2025 13:55:04 +0100 Subject: [PATCH] Rename canvas in Chart --- chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt b/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt index af699efcb..214444ff5 100644 --- a/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt +++ b/chartLib/src/main/kotlin/info/appdev/charting/charts/Chart.kt @@ -379,7 +379,7 @@ abstract class Chart>> : ViewGroup, IBaseP /** * Draws the description text in the bottom right corner of the chart (per default) */ - protected fun drawDescription(c: Canvas) { + protected fun drawDescription(canvas: Canvas) { // check if description should be drawn if (description.isEnabled) { @@ -402,7 +402,7 @@ abstract class Chart>> : ViewGroup, IBaseP y = position.y } - c.drawText(description.text!!, x, y, mDescPaint) + canvas.drawText(description.text!!, x, y, mDescPaint) } }