Skip to content

Commit e49afab

Browse files
committed
Update svgtypes to fix incorrect path parsing.
Closes #807
1 parent e90c06e commit e49afab

File tree

9 files changed

+26
-4
lines changed

9 files changed

+26
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
This changelog also contains important changes in dependencies.
88

99
## [Unreleased]
10+
### Fixed
11+
- (svgtypes) Path parsing with `S` or `T` segments after `A`.
1012

1113
## [0.43.0] - 2024-08-10
1214
### Added

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/resvg/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ image-webp = { version = "0.1.3", optional = true }
2020
log = "0.4"
2121
pico-args = { version = "0.5", features = ["eq-separator"] }
2222
rgb = "0.8"
23-
svgtypes = "0.15.1"
23+
svgtypes = "0.15.2"
2424
tiny-skia = "0.11.4"
2525
usvg = { path = "../usvg", version = "0.43.0", default-features = false }
2626
zune-jpeg = { version = "0.4", optional = true }

crates/resvg/tests/integration/render.rs

+2
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,8 @@ use crate::render;
975975
#[test] fn shapes_line_simple_case() { assert_eq!(render("tests/shapes/line/simple-case"), 0); }
976976
#[test] fn shapes_line_with_transform() { assert_eq!(render("tests/shapes/line/with-transform"), 0); }
977977
#[test] fn shapes_path_A() { assert_eq!(render("tests/shapes/path/A"), 0); }
978+
#[test] fn shapes_path_M_A_s() { assert_eq!(render("tests/shapes/path/M-A-s"), 0); }
979+
#[test] fn shapes_path_M_A_t() { assert_eq!(render("tests/shapes/path/M-A-t"), 0); }
978980
#[test] fn shapes_path_M_A_trimmed() { assert_eq!(render("tests/shapes/path/M-A-trimmed"), 0); }
979981
#[test] fn shapes_path_M_A() { assert_eq!(render("tests/shapes/path/M-A"), 0); }
980982
#[test] fn shapes_path_M_C_S() { assert_eq!(render("tests/shapes/path/M-C-S"), 0); }
1.82 KB
Loading
Loading
1.61 KB
Loading
Loading

crates/usvg/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ base64 = "0.22" # for embedded images
2222
log = "0.4"
2323
pico-args = { version = "0.5", features = ["eq-separator"] }
2424
strict-num = "0.1.1"
25-
svgtypes = "0.15.1"
25+
svgtypes = "0.15.2"
2626
tiny-skia-path = "0.11.4"
2727
xmlwriter = "0.1"
2828

0 commit comments

Comments
 (0)