diff --git a/core/rasterization.cpp b/core/rasterization.cpp index 9aa695a..8ceec77 100644 --- a/core/rasterization.cpp +++ b/core/rasterization.cpp @@ -33,7 +33,7 @@ void distanceSignCorrection(const BitmapRef &sdf, const Shape &shape, template static void multiDistanceSignCorrection(const BitmapRef &sdf, const Shape &shape, const Projection &projection, FillRule fillRule) { int w = sdf.width, h = sdf.height; - if (!(w*h)) + if (!(w && h)) return; Scanline scanline; bool ambiguous = false;