Skip to content

Commit c4a3f69

Browse files
authored
Merge pull request #638 from AppDevNext/width_height_bug_drawing_images
Fixed width/height bug for drawing images
2 parents 68b00a2 + bd118ef commit c4a3f69

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)