Skip to content

Commit

Permalink
fixed fill rule, updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ehrmann committed May 7, 2020
1 parent 17466ca commit f39b8b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: java
jdk: oraclejdk11
sudo: false # faster builds

notifications:
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/lt/neworld/vd2svg/converter/Converter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Converter(val colors: ResourceCollector) {

doc.getElementsByTagNameNS(null, "path").iterable.map { it as Element }.forEach {
it.attributes.rename(ANDROID_NS, "pathData", SVG_NS, "d")
it.attributes.rename(ANDROID_NS, "fillType", SVG_NS, "fill-rule")
it.fix()
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/testData/after_aapt/case_03.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/test/testData/color_alias/case_01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f39b8b7

Please sign in to comment.