Skip to content

Commit 1149834

Browse files
committed
do not prepend stroke "none" with a hashtag
1 parent 1159ed0 commit 1149834

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/kotlin/com/simplemobiletools/draw/PaintOptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package com.simplemobiletools.draw
33
import android.graphics.Color
44

55
data class PaintOptions(var color: Int = Color.BLACK, var strokeWidth: Float = 5f, var isEraser: Boolean = false) {
6-
fun getColorToExport() = if (isEraser) "none" else Integer.toHexString(color).substring(2)
6+
fun getColorToExport() = if (isEraser) "none" else "#${Integer.toHexString(color).substring(2)}"
77
}

app/src/main/kotlin/com/simplemobiletools/draw/Svg.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object Svg {
4343
write(" ")
4444
}
4545

46-
write("\" fill=\"none\" stroke=\"#")
46+
write("\" fill=\"none\" stroke=\"")
4747
write(options.getColorToExport())
4848
write("\" stroke-width=\"")
4949
write(options.strokeWidth.toString())

0 commit comments

Comments
 (0)