Commit 71bed53b authored by Jan Koester's avatar Jan Koester
Browse files

oval inverted fixed

parent e1275c07
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1277,10 +1277,14 @@ extern "C" {
                        svg.setAttribute("style", "display: block; width: 100%; height: 100%;");

                        libhtmlpp::HtmlElement svgPath("path");
                        // "oval_inverted" is inverted by default; the checkbox then
                        // toggles from there, so checking it on oval_inverted flips
                        // back to the plain oval look instead of stacking.
                        bool effectiveInvert = shapeDividerFlip != (shapeDividerType == "oval_inverted");
                        // "oval_inverted" is always inverted, independent of the
                        // checkbox -- XOR-ing it in used to make checking "invert"
                        // on oval_inverted jump to the unrelated plain-oval look,
                        // which read as the checkbox doing the wrong thing. Now the
                        // checkbox simply has no effect on this type (it's already
                        // the inverted preset) and keeps its normal effect on the
                        // other shapes.
                        bool effectiveInvert = (shapeDividerType == "oval_inverted") || shapeDividerFlip;
                        if (effectiveInvert) {
                            // "Invert" swaps which side of the curve is filled
                            // (convex bulge <-> concave notch) by adding a