Skip to content

Commit

Permalink
Merge pull request #2 from mehrmann/fill-rule-fix
Browse files Browse the repository at this point in the history
fixed fill rule, updates
  • Loading branch information
neworld authored May 7, 2020
2 parents 17466ca + f39b8b7 commit 4273d8f
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 4273d8f

Please sign in to comment.