From 19aee81c1deb876e965661fd902565615a6a09f3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jan 2024 13:59:52 +0100 Subject: [PATCH] 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. --- 3rdparty/nanosvg | 2 +- tests/graphics/bmpbundle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/nanosvg b/3rdparty/nanosvg index ccdb199513..93ce879dc4 160000 --- a/3rdparty/nanosvg +++ b/3rdparty/nanosvg @@ -1 +1 @@ -Subproject commit ccdb1995134d340a93fb20e3a3d323ccb3838dd0 +Subproject commit 93ce879dc4c04a3ef1758428ec80083c38610b1f diff --git a/tests/graphics/bmpbundle.cpp b/tests/graphics/bmpbundle.cpp index 6154c071d2..ece2a3d670 100644 --- a/tests/graphics/bmpbundle.cpp +++ b/tests/graphics/bmpbundle.cpp @@ -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 ); }