Skip to content

Commit bd118ef

Browse files
committed
Fixed width/height bug for drawing images
Inspired by https://github.com/PhilJay/MPAndroidChart/pull/4861/files
1 parent 68b00a2 commit bd118ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chartLib/src/main/kotlin/info/appdev/charting/utils/CanvasUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fun Canvas.drawImage(
3333
drawableBoundsCache.left,
3434
drawableBoundsCache.top,
3535
drawableBoundsCache.left + width,
36-
drawableBoundsCache.top + width
36+
drawableBoundsCache.top + height
3737
)
3838

3939
val saveId = this.save()

0 commit comments

Comments
 (0)