mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:35:54 +08:00
Fix of Point coord overflow(double scaled int) in test
Should fix MAC build
This commit is contained in:
parent
e0bb5f8da8
commit
1b62121c97
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user