diff --git a/CHANGELOG.md b/CHANGELOG.md index e40c29a3e..94d5577eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ All notable changes to this project will be documented in this file. - AS3 P-code - hilight and edit traits outside classes - [#1585] SVG import - support for style tag (CSS) - [#1585] SVG import - support for switch tag -- [#1122] SVG import - relative coordinates in gradients (tests coords-units-01-b, pservers-grad-12-b) +- [#1122] SVG import - relative coordinates (tests coords-units-01-b, coords-units-02-b, pservers-grad-12-b) - Preview in image file selection dialogs ### Changed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java index ac97babb7..58a38dc15 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java @@ -847,7 +847,7 @@ public class SvgImporter { double cy = attr.length() > 0 ? parseCoordinate(attr, viewBox.height) : 0; attr = childElement.getAttribute("r"); - double r = attr.length() > 0 ? parseLength(attr, viewBox.width/* todo: how much is 100%? */) : 0; + double r = attr.length() > 0 ? parseLength(attr, (viewBox.width + viewBox.height) / 2) : 0; processEllipse(shapeNum, shapes, transform, style, cx, cy, r, r); }