Update nanosvg to the latest upstream version
This notably fixes crash with SVGs using 1 stop gradients. Relax the check in a test added in #24064 as it doesn't quite pass with the new version -- this is somewhat suspicious but as it wasn't really clear where did the original tolerance of 3 come from, it doesn't seem to be a huge problem to increase it to 4 neither. Closes #24213.
This commit is contained in:
parent
f37401dde3
commit
19aee81c1d
2 changed files with 2 additions and 2 deletions
2
3rdparty/nanosvg
vendored
2
3rdparty/nanosvg
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit ccdb1995134d340a93fb20e3a3d323ccb3838dd0
|
||||
Subproject commit 93ce879dc4c04a3ef1758428ec80083c38610b1f
|
||||
|
|
@ -396,7 +396,7 @@ TEST_CASE("BitmapBundle::FromSVG-alpha", "[bmpbundle][svg][alpha]")
|
|||
// alpha pixel values in wxImage, allowing for roundoff error.
|
||||
CHECK( (int)img.GetRed(0, 1) >= 0x3c );
|
||||
CHECK( (int)img.GetRed(0, 1) <= 0x3f );
|
||||
CHECK( (int)img.GetGreen(0, 1) >= 0x7c );
|
||||
CHECK( (int)img.GetGreen(0, 1) >= 0x7b );
|
||||
CHECK( (int)img.GetGreen(0, 1) <= 0x7f);
|
||||
CHECK( (int)img.GetBlue(0, 1) == 0xff );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue