Fix of Point coord overflow(double scaled int) in test

Should fix MAC build
This commit is contained in:
Filip Sykala - NTB T15p 2023-09-15 09:46:19 +02:00
parent e0bb5f8da8
commit 1b62121c97

View File

@ -244,7 +244,9 @@ void scale(Polygons &polygons, double multiplicator) {
Polygons load_polygons(const std::string &svg_file) {
std::string file_path = TEST_DATA_DIR PATH_SEPARATOR + svg_file;
NSVGimage *image = nsvgParseFromFile(file_path.c_str(), "px", 96.0f);
Polygons polygons = to_polygons(*image, NSVGLineParams{1000});
NSVGLineParams param{1000};
param.scale = 10.;
Polygons polygons = to_polygons(*image, param);
nsvgDelete(image);
return polygons;
}