diff --git a/src/examples/images/penrose-staircase.tvg b/src/examples/images/penrose-staircase.tvg index 7aabee97..0d2043ce 100644 Binary files a/src/examples/images/penrose-staircase.tvg and b/src/examples/images/penrose-staircase.tvg differ diff --git a/src/examples/images/test.tvg b/src/examples/images/test.tvg index 78bb48f8..d822a903 100644 Binary files a/src/examples/images/test.tvg and b/src/examples/images/test.tvg differ diff --git a/src/savers/tvg/tvgTvgSaver.cpp b/src/savers/tvg/tvgTvgSaver.cpp index 8be2831b..01d2bb73 100644 --- a/src/savers/tvg/tvgTvgSaver.cpp +++ b/src/savers/tvg/tvgTvgSaver.cpp @@ -108,6 +108,10 @@ static bool _merge(Shape* from, Shape* to) if (r != r2 || g != g2 || b != b2 || a != a2) return false; if (fabs(from->strokeWidth() - to->strokeWidth()) > FLT_EPSILON) return false; + + //OPTIMIZE: Yet we can't merge outlining shapes unless we can support merging shapes feature. + if (from->strokeWidth() > 0 || to->strokeWidth() > 0) return false; + if (from->strokeCap() != to->strokeCap()) return false; if (from->strokeJoin() != to->strokeJoin()) return false; if (from->strokeDash(nullptr) > 0 || to->strokeDash(nullptr) > 0) return false;