diff --git a/src/widgets/SVGWidget.cpp b/src/widgets/SVGWidget.cpp index 56a7834f..ac164178 100644 --- a/src/widgets/SVGWidget.cpp +++ b/src/widgets/SVGWidget.cpp @@ -44,10 +44,12 @@ static void drawSVG(NVGcontext *vg, NSVGimage *svg) { if (path->closed) nvgClosePath(vg); - // if () - // nvgPathWinding(vg, NVG_SOLID); - // else - // nvgPathWinding(vg, NVG_HOLE); + // TODO + // This is totally wrong but works by coincidence + if (!path->next) + nvgPathWinding(vg, NVG_SOLID); + else + nvgPathWinding(vg, NVG_HOLE); } // Fill shape